I tried to use ~ \.php$ again today to only serve php pages with the backend with proxy_pass but I got this error: 404 Not Found Todd Posted at Nginx Forum: http://forum.nginx.org/read.php?2,27301,27534#msg-27534