a0b210
a0b210
LoadModule dav_svn_module     modules/mod_dav_svn.so
a0b210
LoadModule authz_svn_module   modules/mod_authz_svn.so
a0b210
LoadModule dontdothat_module  modules/mod_dontdothat.so
a0b210
a0b210
#
a0b210
# Example configuration to enable HTTP access for a directory
a0b210
# containing Subversion repositories, "/var/www/svn".  Each repository
a0b210
# must be both:
a0b210
#
a0b210
#   a) readable and writable by the 'apache' user, and
a0b210
#
a0b210
#   b) labelled with the 'httpd_sys_content_t' context if using
a0b210
#   SELinux
a0b210
#
a0b210
a0b210
#
a0b210
# To create a new repository "http://localhost/repos/stuff" using
a0b210
# this configuration, run as root:
a0b210
#
a0b210
#   # cd /var/www/svn
a0b210
#   # svnadmin create stuff   
a0b210
#   # chown -R apache:apache stuff
a0b210
#   # chcon -R -t httpd_sys_content_t stuff
a0b210
#
a0b210
a0b210
#<Location /repos>
a0b210
#   DAV svn
a0b210
#   SVNParentPath /var/www/svn
a0b210
#
a0b210
#   # Limit write permission to list of valid users.
a0b210
#   <LimitExcept GET PROPFIND OPTIONS REPORT>
a0b210
#      # Require SSL connection for password protection.
a0b210
#      # SSLRequireSSL
a0b210
#
a0b210
#      AuthType Basic
a0b210
#      AuthName "Authorization Realm"
a0b210
#      AuthUserFile /path/to/passwdfile
a0b210
#      Require valid-user
a0b210
#   </LimitExcept>
a0b210
#</Location>