1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName <%= @name %>
5 ServerAlias www.switch2osm.org
6 ServerAlias switch2osm.com
7 ServerAlias www.switch2osm.com
8 ServerAdmin webmaster@openstreetmap.org
10 CustomLog /var/log/apache2/<%= @name %>-access.log combined
11 ErrorLog /var/log/apache2/<%= @name %>-error.log
14 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
15 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
17 DocumentRoot <%= @directory %>
21 ServerName <%= @name %>
22 ServerAlias www.switch2osm.org
23 ServerAlias switch2osm.com
24 ServerAlias www.switch2osm.com
25 ServerAdmin webmaster@openstreetmap.org
27 CustomLog /var/log/apache2/<%= @name %>-access.log combined
28 ErrorLog /var/log/apache2/<%= @name %>-error.log
30 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
31 RedirectPermanent / https://<%= @name %>/
34 <Directory <%= @directory %>>