]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dmca/templates/default/apache.erb
add overpass cookbook
[chef.git] / cookbooks / dmca / templates / default / apache.erb
index 592c0d336227d8230dc614e64176b717669d75d4..672a1be3e7d9903d7cce88779e9935c54d446e91 100644 (file)
   DocumentRoot <%= @directory %>/html
 
   Options -Indexes
   DocumentRoot <%= @directory %>/html
 
   Options -Indexes
-
-  ProxyFCGISetEnvIf "true" PHP_ADMIN_VALUE "open_basedir=<%= @directory %>/html/:/usr/share/php/:/tmp/\ndisable_functions=exec,shell_exec,system,passthru,popen,proc_open"
 </VirtualHost>
 
 <Directory <%= @directory %>/html>
   Require all granted
 </VirtualHost>
 
 <Directory <%= @directory %>/html>
   Require all granted
+
+  <FilesMatch ".+\.ph(ar|p|tml)$">
+    SetHandler "proxy:unix:/run/php/<%= @name %>.sock|fcgi://127.0.0.1"
+  </FilesMatch>
 </Directory>
 </Directory>