Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
 
2
LoadModule dav_svn_module     modules/mod_dav_svn.so
3
LoadModule authz_svn_module   modules/mod_authz_svn.so
4
 
5
#
6
# Example configuration to enable HTTP access for a directory
7
# containing Subversion repositories, "/var/www/svn".  Each repository
8
# must be readable and writable by the 'apache' user.  Note that if
9
# SELinux is enabled, the repositories must be labelled with a context
10
# which httpd can write to; this will happen by default for
11
# directories created in /var/www.  Use "restorecon -R /var/www/svn"
12
# to label the repositories if upgrading from a previous release.
13
#
14
 
15
#
16
# To create a new repository "http://localhost/repos/stuff" using
17
# this configuration, run as root:
18
#
19
#   # cd /var/www/svn
20
#   # svnadmin create stuff
21
#   # chown -R apache.apache stuff
22
#
23
 
24
#<Location /repos>
25
#   DAV svn
26
#   SVNParentPath /var/www/svn
27
#
28
#   # Limit write permission to list of valid users.
29
#   <LimitExcept GET PROPFIND OPTIONS REPORT>
30
#      # Require SSL connection for password protection.
31
#      # SSLRequireSSL
32
#
33
#      AuthType Basic
34
#      AuthName "Authorization Realm"
35
#      AuthUserFile /path/to/passwdfile
36
#      Require valid-user
37
#   </LimitExcept>
38
#</Location>
39
 
40
# Subversion Repositories
41
<Location /repo>
42
DAV svn
43
SVNParentPath /data/repositories
44
#AuthType Basic
45
#AuthName "Subversion Repository"
46
#AuthUserFile /etc/svn-auth-file
47
#AuthzSVNAccessFile /etc/svn-authz-file
48
SVNIndexXSLT "/svnindex.xsl"
49
SetOutputFilter DEFLATE
50
</Location>
51
 
52
CustomLog logs/svn_logfile "%t %u %{SVN-ACTION}e" env=SVN-ACTION