1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName <%= @name %>
5 <% @domains.drop(1).each do |domain| -%>
6 ServerAlias mta-sts.<%= domain %>
8 ServerAdmin webmaster@openstreetmap.org
10 CustomLog /var/log/apache2/<%= @name %>-access.log combined_extended
11 ErrorLog /var/log/apache2/<%= @name %>-error.log
13 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
15 <% @domains.each do |domain| -%>
18 ServerName mta-sts.<%= domain %>
19 ServerAdmin webmaster@openstreetmap.org
22 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
23 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
25 CustomLog /var/log/apache2/<%= @name %>-access.log combined_extended
26 ErrorLog /var/log/apache2/<%= @name %>-error.log
28 Alias /.well-known/mta-sts.txt <%= @directory %>/<%= domain %>.txt
32 <Directory <%= @directory %>>