X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/1c848471a16f9d1ee1fc8a327af110447ea1ef4c..ea65a185d043709670b7087fe3f6d58797fe48ee:/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..ec74a54da 100644 --- a/cookbooks/dev/templates/default/apache.phppgadmin.erb +++ b/cookbooks/dev/templates/default/apache.phppgadmin.erb @@ -1,20 +1,37 @@ # DO NOT EDIT - This file is being maintained by Chef - + ServerName phppgadmin.dev.openstreetmap.org ServerAdmin webmaster@openstreetmap.org + SSLEngine on + SSLCertificateFile /etc/ssl/certs/phppgadmin.dev.openstreetmap.org.pem + SSLCertificateKeyFile /etc/ssl/private/phppgadmin.dev.openstreetmap.org.key + CustomLog /var/log/apache2/phppgadmin.dev.openstreetmap.org-access.log combined ErrorLog /var/log/apache2/phppgadmin.dev.openstreetmap.org-error.log 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 + + + ServerName phppgadmin.dev.openstreetmap.org + ServerAdmin webmaster@openstreetmap.org + + CustomLog /var/log/apache2/phppgadmin.dev.openstreetmap.org-access.log combined + ErrorLog /var/log/apache2/phppgadmin.dev.openstreetmap.org-error.log + + RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/ + RedirectPermanent / https://phppgadmin.dev.openstreetmap.org/ + + + + Require all granted +