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