Only pass to php-fpm if file exists
authorGrant Slater <git@firefishy.com>
Sat, 22 Aug 2015 01:25:59 +0000 (02:25 +0100)
committerGrant Slater <git@firefishy.com>
Sat, 22 Aug 2015 01:25:59 +0000 (02:25 +0100)
cookbooks/dev/templates/default/apache.user.erb

index fd6be28be5ac18a7bcbc980d997357e7a8b5f492..f6afd675d0ee873595ce4872e06be6fbc0ff86a1 100644 (file)
@@ -25,6 +25,7 @@ WSGIDaemonProcess <%= @user %>.dev.openstreetmap.org user=<%= @user %> inactivit
        RewriteCond <%= @directory %>%{REQUEST_FILENAME} -f
        RewriteRule ^/cgi-bin-d/(.*)$ /cgi-bin/cgiwrapd/~<%= @user %>/cgi-bin/$1 [PT,L]
 
+        RewriteCond <%= @directory %>%{REQUEST_FILENAME} -f
        RewriteRule ^/(.*\.ph(p|ps|p3|tml)(/.*)?)$ fcgi://127.0.0.1:<%= @port %><%= @directory %>/$1 [P]
 </VirtualHost>