Hi again, I found the problem: I had `proxy_set_header Host $host;` in the configuration file. If I replace this line by `proxy_set_header Host $http_host;` the port is now correctly set on http 302.
Regards, > Hi list, > > I have a web app proxied by nginx. Everything works fine locally. > However the web server is on our private network and I would like to > access it though a ssh tunnel from the outside. > Most operations works fine except when the web app returns a 302 > redirection. In that case it seems that nginx removes the http port > (detailed issue below). _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx