projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2519cd3
)
Only pass to php-fpm if file exists
author
Grant Slater
<git@firefishy.com>
Sat, 22 Aug 2015 01:25:59 +0000
(
02:25
+0100)
committer
Grant Slater
<git@firefishy.com>
Sat, 22 Aug 2015 01:25:59 +0000
(
02:25
+0100)
cookbooks/dev/templates/default/apache.user.erb
patch
|
blob
|
history
diff --git
a/cookbooks/dev/templates/default/apache.user.erb
b/cookbooks/dev/templates/default/apache.user.erb
index fd6be28be5ac18a7bcbc980d997357e7a8b5f492..f6afd675d0ee873595ce4872e06be6fbc0ff86a1 100644
(file)
--- a/
cookbooks/dev/templates/default/apache.user.erb
+++ b/
cookbooks/dev/templates/default/apache.user.erb
@@
-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>