Помогла директива proxy_redirect http://$http_host $scheme://$http_host; Posted at Nginx Forum: http://forum.nginx.org/read.php?21,245346,245351#msg-245351