nginx proxy_pass always 502
Opened this issue · 2 comments
zhangguanzhang commented
I use the nginx to setup the container about the proxy_pass,it's always return 502
wv1124 commented
me to
roclink commented
location ^~ /ssh {
root /usr/local/lib/python2.7/dist-packages/gateone-1.2.0-py2.7.egg;
try_files $uri $uri/index.html $uri.html @gateone;
}
location @gateone {
proxy_pass http://localhost:8080;
proxy_redirect off;
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $http_address;
proxy_set_header X-Scheme $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}