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