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 %>
 
  19    ErrorDocument 404 /404.html
 
  22    ExpiresDefault "access plus 10 minutes"
 
  26    ServerName <%= @name %>
 
  27    ServerAlias www.switch2osm.org
 
  28    ServerAlias switch2osm.com
 
  29    ServerAlias www.switch2osm.com
 
  30    ServerAdmin webmaster@openstreetmap.org
 
  32    CustomLog /var/log/apache2/<%= @name %>-access.log combined
 
  33    ErrorLog /var/log/apache2/<%= @name %>-error.log
 
  35    RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
 
  36    RedirectPermanent / https://<%= @name %>/
 
  39 <Directory <%= @directory %>>