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