X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1c848471a16f9d1ee1fc8a327af110447ea1ef4c..b75beef9a192ca60ed4a0c41417d4e944cea02be:/cookbooks/dev/templates/default/apache.phppgadmin.erb diff --git a/cookbooks/dev/templates/default/apache.phppgadmin.erb b/cookbooks/dev/templates/default/apache.phppgadmin.erb index e2d8556f7..bf3d0b5c7 100644 --- a/cookbooks/dev/templates/default/apache.phppgadmin.erb +++ b/cookbooks/dev/templates/default/apache.phppgadmin.erb @@ -9,12 +9,10 @@ DocumentRoot /usr/share/phppgadmin - - - SetHandler fcgi:/var/run/php5-fpm-default.sock - - - SetHandler fcgi:/var/run/php5-fpm-default.sock - - + # 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