]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dev/templates/default/apache.user.erb
Use unix domain sockets for FPM on dev
[chef.git] / cookbooks / dev / templates / default / apache.user.erb
index a6d4d8866402de0405897b2048174113ab6a783a..d308e59778dd9d45d90722c28629a12063cdd9b6 100644 (file)
@@ -29,8 +29,9 @@ WSGIDaemonProcess <%= @user %>.dev.openstreetmap.org user=<%= @user %> inactivit
        RewriteCond <%= @directory %>%{REQUEST_FILENAME} -f
        RewriteRule ^/cgi-bin/(.*)$ /~<%= @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]
+       <FilesMatch ".+\.ph(p|ps|p3|tml)$">
+               SetHandler "proxy:unix:/run/php/tomh.sock|fcgi://127.0.0.1"
+       </FilesMatch>
 </VirtualHost>
 
 <VirtualHost *:80>