oops, forgot the add the rewrite ^ http://somedomain.com:8080$request_uri? permanent; in first server, but it doesn't work Posted at Nginx Forum: http://forum.nginx.org/read.php?2,159859,160482#msg-160482