]> git.openstreetmap.org Git - chef.git/commitdiff
Pass PHP scripts to the correct FPM pool
authorTom Hughes <tom@compton.nu>
Tue, 28 Jul 2020 10:55:26 +0000 (11:55 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 28 Jul 2020 10:55:42 +0000 (11:55 +0100)
cookbooks/dev/templates/default/apache.user.erb

index d308e59778dd9d45d90722c28629a12063cdd9b6..87971664e3985c0e255718b85344b7d5ca11b9c4 100644 (file)
@@ -30,7 +30,7 @@ WSGIDaemonProcess <%= @user %>.dev.openstreetmap.org user=<%= @user %> inactivit
        RewriteRule ^/cgi-bin/(.*)$ /~<%= @user %>/cgi-bin/$1 [PT,L]
 
        <FilesMatch ".+\.ph(p|ps|p3|tml)$">
-               SetHandler "proxy:unix:/run/php/tomh.sock|fcgi://127.0.0.1"
+               SetHandler "proxy:unix:/run/php/<%= @user %>.sock|fcgi://127.0.0.1"
        </FilesMatch>
 </VirtualHost>