]> git.openstreetmap.org Git - chef.git/blob - cookbooks/dev/templates/default/apache.phppgadmin.erb
sotm: Add sotm eu index site
[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         ServerAlias phppgadmin.dev.osm.org
6
7         ServerAdmin webmaster@openstreetmap.org
8
9         SSLEngine on
10         SSLCertificateFile /etc/ssl/certs/phppgadmin.dev.openstreetmap.org.pem
11         SSLCertificateKeyFile /etc/ssl/private/phppgadmin.dev.openstreetmap.org.key
12
13         CustomLog /var/log/apache2/phppgadmin.dev.openstreetmap.org-access.log combined_extended
14         ErrorLog /var/log/apache2/phppgadmin.dev.openstreetmap.org-error.log
15
16         DocumentRoot /usr/share/phppgadmin
17
18         # Remove Proxy request header to mitigate https://httpoxy.org/
19         RequestHeader unset Proxy early
20
21         ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/run/php/php-default-fpm.sock|fcgi://127.0.0.1
22         ProxyPassMatch ^/(.*\.phpx(/.*)?)$ unix:/run/php/php-default-fpm.sock|fcgi://127.0.0.1
23         ProxyPassMatch ^/(.*\.phpj(/.*)?)$ unix:/run/php/php-default-fpm.sock|fcgi://127.0.0.1
24 </VirtualHost>
25
26 <VirtualHost *:80>
27         ServerName phppgadmin.dev.openstreetmap.org
28         ServerAlias phppgadmin.dev.osm.org
29
30         ServerAdmin webmaster@openstreetmap.org
31
32         CustomLog /var/log/apache2/phppgadmin.dev.openstreetmap.org-access.log combined_extended
33         ErrorLog /var/log/apache2/phppgadmin.dev.openstreetmap.org-error.log
34
35         RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
36         RedirectPermanent / https://phppgadmin.dev.openstreetmap.org/
37 </VirtualHost>
38
39 <Directory /usr/share/phppgadmin>
40         Require all granted
41 </Directory>