]> 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 e2d8556f7ad0b362cc4c8c4df8cd4ee16d799ca1..8f81e9d421dcd1293078b89a81279a527169f00a 100644 (file)
@@ -9,12 +9,14 @@
 
        DocumentRoot /usr/share/phppgadmin
 
 
        DocumentRoot /usr/share/phppgadmin
 
-       <IfModule mod_fastcgi_handler.c>
-               <FilesMatch "\.ph(p3?|tml)$">
-                       SetHandler fcgi:/var/run/php5-fpm-default.sock
-               </FilesMatch>
-               <FilesMatch "\.phps$">
-                       SetHandler fcgi:/var/run/php5-fpm-default.sock
-               </FilesMatch>
-       </IfModule>
+       # 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>
 </VirtualHost>
+
+<Directory /usr/share/phppgadmin>
+       Require all granted
+</Directory>