We also tried these options: location ^~ /cms { } location ^~ /cms/ { } But still gets same issue. We are only getting the index page. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237520,237618#msg-237618