Thanks, `proxy_redirect off;` seems to have done the trick. Really weird behavior... Posted at Nginx Forum: http://forum.nginx.org/read.php?2,117878,118134#msg-118134