]> git.openstreetmap.org Git - chef.git/blob - cookbooks/subversion/templates/default/apache.erb
Add https support to svn.openstreetmap.org
[chef.git] / cookbooks / subversion / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2 <% [80, 443].each do |port| -%>
3
4 <VirtualHost *:<%= port %>>
5         ServerName <%= @name %>
6         ServerAdmin webmaster@openstreetmap.org
7 <% if port == 443 -%>
8
9         SSLEngine on
10 <% end -%>
11
12         CustomLog /var/log/apache2/<%= @name %>-access.log combined
13         CustomLog /var/log/apache2/<%= @name %>-svn-access.log "%h %t %u %{SVN-ACTION}e" env=SVN-ACTION
14         ErrorLog /var/log/apache2/<%= @name %>-error.log
15
16         <Location />
17                 DAV svn
18                 SVNPath <%= @directory %>
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 <% end -%>