原因
nginx反向代理非80、8080端口会出现端口丢失的情况
解决
添加proxy_set_header Host $host:$server_port;
即可
upstream f5 {
server 172.16.31.222:1962;
}
server {
listen 1962;
server_name localhost 172.16.6.10;
proxy_set_header Host $host:$server_port;
location / {
proxy_pass http://f5;
}
}