]> git.openstreetmap.org Git - chef.git/blob - cookbooks/subversion/templates/default/apache.erb
Remove world boundaries data source from tile servers
[chef.git] / cookbooks / subversion / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:443>
4   ServerName <%= @name %>
5   ServerAdmin webmaster@openstreetmap.org
6
7   SSLEngine on
8   SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
9   SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
10
11   CustomLog /var/log/apache2/<%= @name %>-access.log combined
12   CustomLog /var/log/apache2/<%= @name %>-svn-access.log "%h %t %u %{SVN-ACTION}e" env=SVN-ACTION
13   ErrorLog /var/log/apache2/<%= @name %>-error.log
14
15   <Location />
16     DAV svn
17     SVNPath <%= @directory %>
18     SVNIndexXSLT /svnindex.xsl
19
20     AuthType Basic
21     AuthName "<%= @realm %>"
22     AuthUserFile <%= @password_file %>
23
24     LimitXMLRequestBody 0
25     LimitRequestBody 0
26
27     <Limit GET PROPFIND OPTIONS REPORT>
28       Require all granted
29     </Limit>
30
31     <LimitExcept GET PROPFIND OPTIONS REPORT>
32       Require valid-user
33     </LimitExcept>
34   </Location>
35 </VirtualHost>
36 <% unless @aliases.empty? -%>
37
38 <VirtualHost *:443>
39   ServerName <%= @aliases.first %>
40 <% @aliases.drop(1).each do |alias_name| -%>
41   ServerAlias <%= alias_name %>
42 <% end -%>
43   ServerAdmin webmaster@openstreetmap.org
44
45   SSLEngine on
46   SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
47   SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
48
49   CustomLog /var/log/apache2/<%= @name %>-access.log combined
50   ErrorLog /var/log/apache2/<%= @name %>-error.log
51
52   RedirectPermanent / https://<%= @name %>/
53 </VirtualHost>
54 <% end -%>
55
56 <VirtualHost *:80>
57   ServerName <%= @name %>
58 <% @aliases.each do |alias_name| -%>
59   ServerAlias <%= alias_name %>
60 <% end -%>
61
62   ServerAdmin webmaster@openstreetmap.org
63
64   CustomLog /var/log/apache2/<%= @name %>-access.log combined
65   ErrorLog /var/log/apache2/<%= @name %>-error.log
66
67   RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
68   RedirectPermanent / https://<%= @name %>/
69 </VirtualHost>