]> git.openstreetmap.org Git - chef.git/blob - cookbooks/dev/templates/default/apache.phppgadmin.erb
Enable mod_cgid for gps-tile
[chef.git] / cookbooks / dev / templates / default / apache.phppgadmin.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:443>
4         ServerName phppgadmin.dev.openstreetmap.org
5         ServerAdmin webmaster@openstreetmap.org
6
7         SSLEngine on
8         SSLCertificateFile /etc/ssl/certs/phppgadmin.dev.openstreetmap.org.pem
9         SSLCertificateKeyFile /etc/ssl/private/phppgadmin.dev.openstreetmap.org.key
10
11         CustomLog /var/log/apache2/phppgadmin.dev.openstreetmap.org-access.log combined
12         ErrorLog /var/log/apache2/phppgadmin.dev.openstreetmap.org-error.log
13
14         DocumentRoot /usr/share/phppgadmin
15
16         # Remove Proxy request header to mitigate https://httpoxy.org/
17         RequestHeader unset Proxy early
18
19         ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/run/php/php-default-fpm.sock|fcgi://127.0.0.1
20         ProxyPassMatch ^/(.*\.phpx(/.*)?)$ unix:/run/php/php-default-fpm.sock|fcgi://127.0.0.1
21         ProxyPassMatch ^/(.*\.phpj(/.*)?)$ unix:/run/php/php-default-fpm.sock|fcgi://127.0.0.1
22 </VirtualHost>
23
24 <VirtualHost *:80>
25         ServerName phppgadmin.dev.openstreetmap.org
26         ServerAdmin webmaster@openstreetmap.org
27
28         CustomLog /var/log/apache2/phppgadmin.dev.openstreetmap.org-access.log combined
29         ErrorLog /var/log/apache2/phppgadmin.dev.openstreetmap.org-error.log
30
31         RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
32         RedirectPermanent / https://phppgadmin.dev.openstreetmap.org/
33 </VirtualHost>
34
35 <Directory /usr/share/phppgadmin>
36         Require all granted
37 </Directory>