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 PassengerMinInstances 10
17 PassengerPreStart http://<%= @name %>/
20 CacheEnable disk /embed
24 Header setifempty Access-Control-Allow-Origin *
27 <% unless @aliases.empty? -%>
30 ServerName <%= @aliases.first %>
31 <% @aliases.drop(1).each do |alias_name| -%>
32 ServerAlias <%= alias_name %>
34 ServerAdmin webmaster@openstreetmap.org
37 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
38 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
40 CustomLog /var/log/apache2/<%= @name %>-access.log combined
41 ErrorLog /var/log/apache2/<%= @name %>-error.log
43 RedirectPermanent / https://<%= @name %>/
48 ServerName <%= @name %>
49 <% @aliases.each do |alias_name| -%>
50 ServerAlias <%= alias_name %>
52 ServerAdmin webmaster@openstreetmap.org
54 CustomLog /var/log/apache2/<%= @name %>-access.log combined
55 ErrorLog /var/log/apache2/<%= @name %>-error.log
57 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
58 RedirectPermanent / https://<%= @name %>/
61 <Directory <%= @directory %>>