Use /var/www/default for the docroot, not /var/www
[sysconfig/apache2.git] / mods-available / dav_svn.conf
1 #<IfDefine SVN>
2         <IfModule !mod_dav_svn.c>
3                 LoadModule dav_svn_module       modules/mod_dav_svn.so
4         </IfModule>
5         
6         #<IfDefine SVN_AUTHZ>
7                 <IfModule !mod_authz_svn.c>
8                         LoadModule authz_svn_module     modules/mod_authz_svn.so
9                 </IfModule>
10                 <IfModule !mod_auth_digest.c>
11                         LoadModule auth_digest_module   modules/mod_auth_digest.so
12                 </IfModule>
13         #</IfDefine>
14
15         <Location /svn/repos>
16                 DAV svn
17                 SVNPath /var/svn/repos
18                 AuthType Basic
19                 AuthName "Subversion repository"
20                 AuthUserFile /var/svn/conf/svnusers
21                 Require valid-user
22         </Location>
23         
24         <Location /svn/multi-repos>
25                 DAV svn
26                 SVNParentPath /var/svn/multi-repos
27                 AuthType Basic
28                 AuthName "SVN Repository"
29                 AuthUserFile /var/svn/conf/svnusers
30                 Require valid-user
31         </LOCATION>
32
33         # Alex's subversion repositories
34         <Location /svn/alex/website>
35                 DAV svn
36                 SVNPath /var/svn/alex/website
37                 AuthType Basic
38                 AuthName "alex's subversion repositories"
39                 AuthUserFile /var/svn/conf/svnusers
40                 AuthGroupFile /var/svn/conf/svngroups
41 #               AuthUserFile /var/svn/conf/svndigest
42 #               AuthGroupFile /var/svn/conf/svngroups
43
44                 Require valid-user
45
46                 # Access control
47                 AuthzSVNAccessFile /var/svn/conf/authz.conf
48
49 #               <Limit GET PROPFIND OPTIONS REPORT>
50 #                       Require group website-access
51 #               </Limit>
52         </Location>
53         
54         <Location /svn/alex/transfer>
55                 # DAV/svn directives
56                 DAV svn
57                 SVNPath /var/svn/alex/transfer
58                 SVNAutoversioning on
59
60                 # Authorization directives
61                 AuthType Digest
62                 AuthName "alex's subversion repositories"
63                 AuthUserFile /var/svn/conf/svndigest
64                 AuthGroupFile /var/svn/conf/svngroups
65                 Require group valid-alex
66         </Location>
67
68         <Location /svn/alex/program>
69                 # DAV/svn directives
70                 DAV svn
71                 SVNPath /var/svn/alex/program
72
73                 # Authorization directives
74                 AuthType Digest
75                 AuthName "alex's subversion repositories"
76                 AuthUserFile /var/svn/conf/svndigest
77                 AuthGroupFile /var/svn/conf/svngroups
78
79                 Require valid-user
80
81                 # Access control
82                 AuthzSVNAccessFile /var/svn/conf/authz.conf
83         </Location>
84
85         # Erik Krasner-Karpen and Evan's shareware games repository
86         <Location /svn/sisugames>
87                 DAV svn
88                 SVNPath /var/svn/sisugames
89
90                 # Authorization directives
91                 AuthType Digest
92                 AuthName "sisugames subversion repository"
93                 AuthUserFile /var/svn/conf/svndigest
94                 AuthGroupFile /var/svn/conf/svngroups
95
96                 Require valid-user
97
98                 # Access control
99                 AuthzSVNAccessFile /var/svn/conf/authz.conf
100         </Location>
101         
102         # Mathcamp yearbook repository
103         <Location /svn/mathcamp>
104                 DAV svn
105                 SVNPath /var/svn/mathcamp
106
107                 # Authorization directives
108                 AuthType Digest
109                 AuthName "mathcamp"
110                 AuthUserFile /var/svn/conf/svndigest
111                 AuthGroupFile /var/svn/conf/svngroups
112
113                 Require valid-user
114
115                 # Access control
116                 AuthzSVNAccessFile /var/svn/conf/authz.conf
117         </Location>
118
119         # Phillipian repository
120         <Location /svn/phillipian>
121                 DAV svn
122                 SVNPath /var/svn/phillipian
123
124                 # Authorization directives
125                 AuthType Digest
126                 AuthName "SVN Repository"
127                 AuthUserFile /var/svn/conf/svndigest
128                 AuthGroupFile /var/svn/conf/svngroups
129
130                 Require valid-user
131
132                 # Access control
133                 AuthzSVNAccessFile /var/svn/conf/authz.conf
134         </Location>
135
136         # Troop 57 repository
137         <Location /svn/troop57>
138                 DAV svn
139                 SVNPath /var/svn/troop57
140
141                 # Authorization directives
142                 AuthType Digest
143                 AuthName "SVN Repository"
144                 AuthUserFile /var/svn/conf/svndigest
145                 AuthGroupFile /var/svn/conf/svngroups
146
147                 Require valid-user
148
149                 # Access control
150                 AuthzSVNAccessFile /var/svn/conf/authz.conf
151         </Location>
152
153         # Monopoly
154         <Location /svn/monopoly>
155                 DAV svn
156                 SVNPath /var/svn/monopoly
157
158                 # Authorization directives
159                 AuthType Digest
160                 AuthName "SVN Repository"
161                 AuthUserFile /var/svn/conf/svndigest
162                 AuthGroupFile /var/svn/conf/svngroups
163
164                 Require valid-user
165
166                 # Access control
167                 AuthzSVNAccessFile /var/svn/conf/authz.conf
168         </Location>
169
170         # Crazed Capybara Cabal
171     # Battlecode 2009 team
172         <Location /svn/crazed-capybara-cabal>
173                 DAV svn
174                 SVNPath /var/svn/crazed-capybara-cabal
175
176                 # Authorization directives
177                 AuthType Digest
178                 AuthName "SVN Repository"
179                 AuthUserFile /var/svn/conf/svndigest
180                 AuthGroupFile /var/svn/conf/svngroups
181
182                 Require valid-user
183
184                 # Access control
185                 AuthzSVNAccessFile /var/svn/conf/authz.conf
186         </Location>
187
188     CustomLog /var/log/apache2/svn.log "%t %u %{SVN-ACTION}e" env=SVN-ACTION
189                 
190 #</IfDefine>
191
192 # dav_svn.conf - Example Subversion/Apache configuration
193 #
194 # For details and further options see the Apache user manual and
195 # the Subversion book.
196 #
197 # NOTE: for a setup with multiple vhosts, you will want to do this
198 # configuration in /etc/apache2/sites-available/*, not here.
199
200 # <Location URL> ... </Location>
201 # URL controls how the repository appears to the outside world.
202 # In this example clients access the repository as http://hostname/svn/
203 # Note, a literal /svn should NOT exist in your document root.
204 #<Location /svn>
205
206   # Uncomment this to enable the repository
207   #DAV svn
208
209   # Set this to the path to your repository
210   #SVNPath /var/lib/svn
211   # Alternatively, use SVNParentPath if you have multiple repositories under
212   # under a single directory (/var/lib/svn/repo1, /var/lib/svn/repo2, ...).
213   # You need either SVNPath and SVNParentPath, but not both.
214   #SVNParentPath /var/lib/svn
215
216   # Access control is done at 3 levels: (1) Apache authentication, via
217   # any of several methods.  A "Basic Auth" section is commented out
218   # below.  (2) Apache <Limit> and <LimitExcept>, also commented out
219   # below.  (3) mod_authz_svn is a svn-specific authorization module
220   # which offers fine-grained read/write access control for paths
221   # within a repository.  (The first two layers are coarse-grained; you
222   # can only enable/disable access to an entire repository.)  Note that
223   # mod_authz_svn is noticeably slower than the other two layers, so if
224   # you don't need the fine-grained control, don't configure it.
225
226   # Basic Authentication is repository-wide.  It is not secure unless
227   # you are using https.  See the 'htpasswd' command to create and
228   # manage the password file - and the documentation for the
229   # 'auth_basic' and 'authn_file' modules, which you will need for this
230   # (enable them with 'a2enmod').
231   #AuthType Basic
232   #AuthName "Subversion Repository"
233   #AuthUserFile /etc/apache2/dav_svn.passwd
234
235   # To enable authorization via mod_authz_svn
236   #AuthzSVNAccessFile /etc/apache2/dav_svn.authz
237
238   # The following three lines allow anonymous read, but make
239   # committers authenticate themselves.  It requires the 'authz_user'
240   # module (enable it with 'a2enmod').
241   #<LimitExcept GET PROPFIND OPTIONS REPORT>
242     #Require valid-user
243   #</LimitExcept> 
244
245 #</Location>