]> git.openstreetmap.org Git - chef.git/blob - cookbooks/dev/templates/default/apache.phppgadmin.erb
8f81e9d421dcd1293078b89a81279a527169f00a
[chef.git] / cookbooks / dev / templates / default / apache.phppgadmin.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:80>
4         ServerName phppgadmin.dev.openstreetmap.org
5         ServerAdmin webmaster@openstreetmap.org
6
7         CustomLog /var/log/apache2/phppgadmin.dev.openstreetmap.org-access.log combined
8         ErrorLog /var/log/apache2/phppgadmin.dev.openstreetmap.org-error.log
9
10         DocumentRoot /usr/share/phppgadmin
11
12         # Remove Proxy request header to mitigate https://httpoxy.org/
13         RequestHeader unset Proxy early
14
15         ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:7000/usr/share/phppgadmin
16         ProxyPassMatch ^/(.*\.phpx(/.*)?)$ fcgi://127.0.0.1:7000/usr/share/phppgadmin
17         ProxyPassMatch ^/(.*\.phpj(/.*)?)$ fcgi://127.0.0.1:7000/usr/share/phppgadmin
18 </VirtualHost>
19
20 <Directory /usr/share/phppgadmin>
21         Require all granted
22 </Directory>