]> git.openstreetmap.org Git - chef.git/blob - cookbooks/stateofthemap/templates/default/apache.static.erb
Anchor passenger graphs to zero
[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
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         ServerAdmin webmaster@openstreetmap.org
18
19         CustomLog /var/log/apache2/<%= @year %>.stateofthemap.org-access.log combined
20         ErrorLog /var/log/apache2/<%= @year %>.stateofthemap.org-error.log
21
22         SSLEngine on
23         SSLCertificateFile /etc/ssl/certs/<%= @year %>.stateofthemap.org.pem
24         SSLCertificateKeyFile /etc/ssl/private/<%= @year %>.stateofthemap.org.key
25
26         RedirectPermanent / https://<%= @year %>.stateofthemap.org/
27 </VirtualHost>
28
29 <VirtualHost *:443>
30         ServerName <%= @year %>.stateofthemap.org
31         ServerAdmin webmaster@openstreetmap.org
32
33         CustomLog /var/log/apache2/<%= @year %>.stateofthemap.org-access.log combined
34         ErrorLog /var/log/apache2/<%= @year %>.stateofthemap.org-error.log
35
36         SSLEngine on
37         SSLCertificateFile /etc/ssl/certs/<%= @year %>.stateofthemap.org.pem
38         SSLCertificateKeyFile /etc/ssl/private/<%= @year %>.stateofthemap.org.key
39
40         DocumentRoot /srv/<%= @year %>.stateofthemap.org
41 </VirtualHost>
42
43 <Directory /srv/<%= @year %>.stateofthemap.org>
44         Require all granted
45 </Directory>