is your Appserver hostname-aware? your error 500 should come from your appserver; check your logfiles on that part http://wiki.nginx.org/HttpProxyModule Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238537,238570#msg-238570