]> git.openstreetmap.org Git - chef.git/blob - cookbooks/stateofthemap/templates/default/apache.erb
7ed9d9251c6456ea51269c1988c0b1fabb081d6e
[chef.git] / cookbooks / stateofthemap / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:80>
4         ServerName stateofthemap.org
5         ServerAlias stateofthemap.com
6         ServerAlias www.stateofthemap.org
7         ServerAlias www.stateofthemap.com
8         ServerAdmin webmaster@openstreetmap.org
9
10         CustomLog /var/log/apache2/stateofthemap.org-access.log combined
11         ErrorLog /var/log/apache2/stateofthemap.org-error.log
12
13         RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
14         RedirectPermanent / https://stateofthemap.org/
15 </VirtualHost>
16
17 <VirtualHost *:443>
18         ServerName stateofthemap.com
19         ServerAlias www.stateofthemap.org
20         ServerAlias www.stateofthemap.com
21         ServerAdmin webmaster@openstreetmap.org
22
23         CustomLog /var/log/apache2/stateofthemap.org-access.log combined
24         ErrorLog /var/log/apache2/stateofthemap.org-error.log
25
26         SSLEngine on
27         SSLCertificateFile /etc/ssl/certs/stateofthemap.org.pem
28         SSLCertificateKeyFile /etc/ssl/private/stateofthemap.org.key
29
30         RedirectPermanent / https://stateofthemap.org/
31 </VirtualHost>
32
33 <VirtualHost *:443>
34         ServerName stateofthemap.org
35         ServerAdmin webmaster@openstreetmap.org
36
37         CustomLog /var/log/apache2/stateofthemap.org-access.log combined
38         ErrorLog /var/log/apache2/stateofthemap.org-error.log
39
40         SSLEngine on
41         SSLCertificateFile /etc/ssl/certs/stateofthemap.org.pem
42         SSLCertificateKeyFile /etc/ssl/private/stateofthemap.org.key
43
44         DocumentRoot /srv/stateofthemap.org/html
45 </VirtualHost>
46
47 <Directory /srv/stateofthemap.org/html>
48         Require all granted
49 </Directory>