]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/forum/templates/default/apache.erb
Switch forum to use a custom FPM pool with prometheus monitoring
[chef.git] / cookbooks / forum / templates / default / apache.erb
index 82942001bb4b580a5ff4e6527811d71b4bfe2174..d51786b26b707487bff0f29661dff8d3c396e84f 100644 (file)
@@ -39,8 +39,9 @@
 
        DocumentRoot /srv/forum.openstreetmap.org/html
 
-       ProxyFCGISetEnvIf "true" PHP_ADMIN_VALUE "open_basedir=/srv/forum.openstreetmap.org/html/:/usr/share/php/:/tmp/\ndisable_functions=exec,shell_exec,system,passthru,popen,proc_open"
-       ProxyFCGISetEnvIf "true" PHP_VALUE "upload_max_filesize=70M\npost_max_size=100M"
+       <FilesMatch ".+\.ph(ar|p|tml)$">
+               SetHandler "proxy:unix:/run/php/forum.openstreetmap.org.sock|fcgi://127.0.0.1"
+       </FilesMatch>
 </VirtualHost>
 
 <Directory /srv/forum.openstreetmap.org/html>