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