So I came up with a simple solution...as 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: http://forum.nginx.org/read.php?2,226823,226849#msg-226849