Access Control (Apache)
Links
Configuration
Follow the Install
Copy bin/mod_authz_svn.so
from the Subversion installation folder to the
Apache modules
folder.
In the Apache conf/httpd.conf
file add the following after the
LoadModule
directive for mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
Create a text file to store your access control policy. I created mine in this folder:
/repository/svn-access/svn-access.file
In the Apache conf/httpd.conf
file add the AuthzSVNAccessFile
directive to your Subversion section (don’t forget to update the location of
the access control file):
<Location /svn>
DAV svn
SSLRequireSSL
AuthzSVNAccessFile /repository/svn-access/svn-access.file
SVNParentPath /repository/svn
AuthType Digest
AuthName "Subversion Repository"
AuthDigestDomain /svn/
AuthUserFile /repository/apache/password/svn.htdigest
Require valid-user
</Location>
Set-up your access control file:
# Give patrick read/write access to the bandsaw repository
[bandsaw:/]
patrick = rw
# Patrick is not allowed to commit to the names folder inside the bandsaw repo.
[bandsaw:/names]
patrick = r
For more information on this file: