Try issuing the directive; proxy_set_header >proxy_set_header Host $host:$proxy_port; Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238933,238976#msg-238976