1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName <%= @name %>
5 ServerAdmin webmaster@openstreetmap.org
8 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
9 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
11 CustomLog /var/log/apache2/<%= @name %>-access.log combined
12 ErrorLog /var/log/apache2/<%= @name %>-error.log
14 DocumentRoot <%= @directory %>
16 <% unless @aliases.empty? -%>
19 ServerName <%= @aliases.first %>
20 <% @aliases.drop(1).each do |alias_name| -%>
21 ServerAlias <%= alias_name %>
23 ServerAdmin webmaster@openstreetmap.org
26 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
27 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
29 CustomLog /var/log/apache2/<%= @name %>-access.log combined
30 ErrorLog /var/log/apache2/<%= @name %>-error.log
32 RedirectPermanent / https://<%= @name %>/
37 ServerName <%= @name %>
38 <% @aliases.each do |alias_name| -%>
39 ServerAlias <%= alias_name %>
41 ServerAdmin webmaster@openstreetmap.org
43 CustomLog /var/log/apache2/<%= @name %>-access.log combined
44 ErrorLog /var/log/apache2/<%= @name %>-error.log
46 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
47 RedirectPermanent / https://<%= @name %>/
50 <Directory <%= @directory %>>