]> git.openstreetmap.org Git - chef.git/blob - cookbooks/stateofthemap/templates/default/apache.erb
nominatim: add automatic migration on updates
[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 sotm.org
7         ServerAlias www.stateofthemap.org
8         ServerAlias www.stateofthemap.com
9         ServerAlias www.sotm.org
10         ServerAdmin webmaster@openstreetmap.org
11
12         CustomLog /var/log/apache2/stateofthemap.org-access.log combined
13         ErrorLog /var/log/apache2/stateofthemap.org-error.log
14
15         RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
16         RedirectPermanent / https://stateofthemap.org/
17 </VirtualHost>
18
19 <VirtualHost *:443>
20         ServerName stateofthemap.com
21         ServerAlias sotm.org
22         ServerAlias www.stateofthemap.org
23         ServerAlias www.stateofthemap.com
24         ServerAlias www.sotm.org
25         ServerAdmin webmaster@openstreetmap.org
26
27         CustomLog /var/log/apache2/stateofthemap.org-access.log combined
28         ErrorLog /var/log/apache2/stateofthemap.org-error.log
29
30         SSLEngine on
31         SSLCertificateFile /etc/ssl/certs/stateofthemap.org.pem
32         SSLCertificateKeyFile /etc/ssl/private/stateofthemap.org.key
33
34         RedirectPermanent / https://stateofthemap.org/
35 </VirtualHost>
36
37 <VirtualHost *:443>
38         ServerName stateofthemap.org
39         ServerAdmin webmaster@openstreetmap.org
40
41         CustomLog /var/log/apache2/stateofthemap.org-access.log combined
42         ErrorLog /var/log/apache2/stateofthemap.org-error.log
43
44         SSLEngine on
45         SSLCertificateFile /etc/ssl/certs/stateofthemap.org.pem
46         SSLCertificateKeyFile /etc/ssl/private/stateofthemap.org.key
47
48         DocumentRoot /srv/stateofthemap.org/html
49
50         ErrorDocument 404 /404.html
51
52         ExpiresActive On
53         ExpiresDefault "access plus 12 hours"
54 </VirtualHost>
55
56 <Directory /srv/stateofthemap.org/html>
57         Require all granted
58 </Directory>