Thanks. So with this setup, this works: http://mydomain.com:81/static/test.gif But when I try this: http://mydomain.com:81/static/test.gif It physically redirects to http://mydomain.com. How can I avoid this? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,201449,201792#msg-201792