]> git.openstreetmap.org Git - chef.git/commitdiff
Configure open_basedir for dmca site
authorTom Hughes <tom@compton.nu>
Mon, 13 Jul 2020 18:12:20 +0000 (19:12 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 13 Jul 2020 18:12:20 +0000 (19:12 +0100)
cookbooks/dmca/templates/default/apache.erb

index bf53e2d2e41b4449a0e198ab6a3f8476a61a1911..592c0d336227d8230dc614e64176b717669d75d4 100644 (file)
@@ -47,6 +47,8 @@
   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>