]> git.openstreetmap.org Git - chef.git/blob - cookbooks/stateofthemap/templates/default/apache.static.erb
db543bb62a7a925f8c5894ee871d8073e80cf187
[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 </VirtualHost>
43
44 <Directory /srv/<%= @year %>.stateofthemap.org>
45         Require all granted
46 </Directory>