1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName <%= @name %>
5 ServerAdmin webmaster@openstreetmap.org
10 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
11 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
13 CustomLog /var/log/apache2/<%= @name %>-access.log combined
14 CustomLog /var/log/apache2/<%= @name %>-svn-access.log "%h %t %u %{SVN-ACTION}e" env=SVN-ACTION
15 ErrorLog /var/log/apache2/<%= @name %>-error.log
19 SVNPath <%= @directory %>
20 SVNIndexXSLT /svnindex.xsl
23 AuthName "<%= @realm %>"
24 AuthUserFile <%= @password_file %>
29 <Limit GET PROPFIND OPTIONS REPORT>
33 <LimitExcept GET PROPFIND OPTIONS REPORT>
38 <% unless @aliases.empty? -%>
41 ServerName <%= @aliases.first %>
42 <% @aliases.drop(1).each do |alias_name| -%>
43 ServerAlias <%= alias_name %>
45 ServerAdmin webmaster@openstreetmap.org
48 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
49 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
51 CustomLog /var/log/apache2/<%= @name %>-access.log combined
52 ErrorLog /var/log/apache2/<%= @name %>-error.log
54 RedirectPermanent / https://<%= @name %>/
59 ServerName <%= @name %>
60 <% @aliases.each do |alias_name| -%>
61 ServerAlias <%= alias_name %>
64 ServerAdmin webmaster@openstreetmap.org
66 CustomLog /var/log/apache2/<%= @name %>-access.log combined
67 ErrorLog /var/log/apache2/<%= @name %>-error.log
69 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
70 RedirectPermanent / https://<%= @name %>/