Linux Version: CentOS release 6.10 (Final)

Nginx Version: nginx/1.12.2


nginx.conf配置:

server {

listen 8050;

listen 8060;

listen 8070;

listen 8080;

server_name www.test.com;

location / {

index index.html index.htm;

proxy_pass http://192.168.1.100:$server_port;

proxy_set_header host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

}

}