]> git.openstreetmap.org Git - chef.git/blob - cookbooks/subversion/templates/default/apache.erb
Use http for all backend requests
[chef.git] / cookbooks / subversion / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:80>
4         ServerName <%= @name %>
5         ServerAdmin webmaster@openstreetmap.org
6
7         CustomLog /var/log/apache2/<%= @name %>-access.log combined
8         CustomLog /var/log/apache2/<%= @name %>-svn-access.log "%h %t %u %{SVN-ACTION}e" env=SVN-ACTION
9         ErrorLog /var/log/apache2/<%= @name %>-error.log
10
11         <Location />
12                 DAV svn
13                 SVNPath <%= @directory %>
14
15                 AuthType Basic
16                 AuthName "<%= @realm %>"
17                 AuthUserFile <%= @password_file %>
18
19                 LimitXMLRequestBody 0
20                 LimitRequestBody 0
21
22                 <Limit GET PROPFIND OPTIONS REPORT>
23                         Require all granted
24                 </Limit>
25
26                 <LimitExcept GET PROPFIND OPTIONS REPORT>
27                         Require valid-user
28                 </LimitExcept>
29         </Location>
30 </VirtualHost>