]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dev/templates/default/apache.phppgadmin.erb
Update piwik to 3.1.0
[chef.git] / cookbooks / dev / templates / default / apache.phppgadmin.erb
index b6a7f9197284ee5de56b7ca83464cac08a97471f..8f81e9d421dcd1293078b89a81279a527169f00a 100644 (file)
@@ -9,7 +9,14 @@
 
        DocumentRoot /usr/share/phppgadmin
 
+       # Remove Proxy request header to mitigate https://httpoxy.org/
+       RequestHeader unset Proxy early
+
        ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:7000/usr/share/phppgadmin
        ProxyPassMatch ^/(.*\.phpx(/.*)?)$ fcgi://127.0.0.1:7000/usr/share/phppgadmin
        ProxyPassMatch ^/(.*\.phpj(/.*)?)$ fcgi://127.0.0.1:7000/usr/share/phppgadmin
 </VirtualHost>
+
+<Directory /usr/share/phppgadmin>
+       Require all granted
+</Directory>