2004-09-09 12:47:20 +00:00
|
|
|
|
|
|
|
LoadModule dav_svn_module modules/mod_dav_svn.so
|
|
|
|
LoadModule authz_svn_module modules/mod_authz_svn.so
|
|
|
|
|
|
|
|
#
|
2004-11-24 09:42:14 +00:00
|
|
|
# Example configuration to enable HTTP access for a directory
|
|
|
|
# containing Subversion repositories, "/var/www/svn". Each repository
|
2009-03-31 16:15:40 +00:00
|
|
|
# must be both:
|
|
|
|
#
|
|
|
|
# a) readable and writable by the 'apache' user, and
|
|
|
|
#
|
|
|
|
# b) labelled with the 'http_sys_content_rw_t' context if using
|
|
|
|
# SELinux
|
2004-11-24 09:42:14 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
2005-09-08 15:49:25 +00:00
|
|
|
# To create a new repository "http://localhost/repos/stuff" using
|
|
|
|
# this configuration, run as root:
|
2004-11-24 09:42:14 +00:00
|
|
|
#
|
|
|
|
# # cd /var/www/svn
|
|
|
|
# # svnadmin create stuff
|
|
|
|
# # chown -R apache.apache stuff
|
2009-03-31 16:15:40 +00:00
|
|
|
# # chcon -R -t -t http_sys_content_rw_t stuff
|
2004-11-24 09:42:14 +00:00
|
|
|
#
|
2004-09-09 12:47:20 +00:00
|
|
|
|
2004-11-24 09:42:14 +00:00
|
|
|
#<Location /repos>
|
2004-09-09 12:47:20 +00:00
|
|
|
# DAV svn
|
2004-11-24 09:42:14 +00:00
|
|
|
# SVNParentPath /var/www/svn
|
2004-09-09 12:47:20 +00:00
|
|
|
#
|
|
|
|
# # Limit write permission to list of valid users.
|
|
|
|
# <LimitExcept GET PROPFIND OPTIONS REPORT>
|
|
|
|
# # Require SSL connection for password protection.
|
|
|
|
# # SSLRequireSSL
|
|
|
|
#
|
|
|
|
# AuthType Basic
|
|
|
|
# AuthName "Authorization Realm"
|
|
|
|
# AuthUserFile /path/to/passwdfile
|
|
|
|
# Require valid-user
|
|
|
|
# </LimitExcept>
|
|
|
|
#</Location>
|