ssh-tunnel into website nginx strips out port number in response

jwxie nginx-forum at
Sat May 26 07:02:16 UTC 2012

So I came up with a simple my own answer...

proxy_set_header Host $host;

$host should be replaced with $http_host, although I am not quite sure
the meaning of either.

Posted at Nginx Forum:,226823,226849#msg-226849

More information about the nginx mailing list