【解决办法】在nginx.conf中添加proxy_set_header参数,设置转发的请求头
server {
listen 192.168.120.42:8000;
server_name www.myiserver.com;
location /iserver{
proxy_pass http://192.168.112.217:8090/iserver;
#proxy_set_header Host $host:8000;
proxy_set_header ProxyHost $host:8000; }
}