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