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 %>/
18 PassengerAppGroupName taginfo
21 CacheEnable disk /embed
25 Header setifempty Access-Control-Allow-Origin *
28 <% unless @aliases.empty? -%>
31 ServerName <%= @aliases.first %>
32 <% @aliases.drop(1).each do |alias_name| -%>
33 ServerAlias <%= alias_name %>
35 ServerAdmin webmaster@openstreetmap.org
38 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
39 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
41 CustomLog /var/log/apache2/<%= @name %>-access.log combined
42 ErrorLog /var/log/apache2/<%= @name %>-error.log
44 RedirectPermanent / https://<%= @name %>/
49 ServerName <%= @name %>
50 <% @aliases.each do |alias_name| -%>
51 ServerAlias <%= alias_name %>
53 ServerAdmin webmaster@openstreetmap.org
55 CustomLog /var/log/apache2/<%= @name %>-access.log combined
56 ErrorLog /var/log/apache2/<%= @name %>-error.log
58 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
59 RedirectPermanent / https://<%= @name %>/
62 <Directory <%= @directory %>>