]> git.openstreetmap.org Git - chef.git/blob - cookbooks/foundation/templates/default/apache.owg.erb
Update wiki to mediawiki 1.31
[chef.git] / cookbooks / foundation / templates / default / apache.owg.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:443>
4    ServerName <%= @name %>
5    ServerAdmin webmaster@openstreetmap.org
6
7    CustomLog /var/log/apache2/<%= @name %>-access.log combined
8    ErrorLog /var/log/apache2/<%= @name %>-error.log
9
10    SSLEngine on
11    SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
12    SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
13
14    DocumentRoot <%= @directory %>
15 </VirtualHost>
16
17 <VirtualHost *:80>
18    ServerName <%= @name %>
19    ServerAdmin webmaster@openstreetmap.org
20
21    CustomLog /var/log/apache2/<%= @name %>-access.log combined
22    ErrorLog /var/log/apache2/<%= @name %>-error.log
23
24    RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
25    RedirectPermanent / https://<%= @name %>/
26 </VirtualHost>
27
28 <Directory <%= @directory %>>
29    Require all granted
30 </Directory>