|
Make sure the following LoadModule statements appear in the
Dynamic Shared Object (DSO) Support section of your Apache
configuration file. The subversion installation should have automatically
added the dav_svn_module and authz_svn_module lines.
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
#LoadModule authz_svn_module modules/mod_authz_svn.so
Uncomment the authz_svn_module line if you wish to use
fine-grained permissions (see below).
Finally, you can configure the access to the repositories. You have the
choice to either add one <Location> section per repository, or to
have a single <Location> specifying some directory containing all
repositories and use fine-grained permission controls (see below).
Typically, you will want to use password authentication, but other methods
are supported.
The following entry would give read-only access to everyone, and write
access to users in the given AuthUserFile. You can use the
htpasswd utility to create or update
that file.
<Location /myproject>
DAV svn
SVNPath /path/to/myproject
AuthType Basic
AuthName "My project"
AuthUserFile /path/to/authfile
Order deny,allow
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
The following entry would give read/write access to users in the
AuthUserFile, and no access to anyone else.
<Location /myproject>
DAV svn
SVNPath /path/to/myproject
AuthType Basic
AuthName "My project"
AuthUserFile /path/to/authfile
Order deny,allow
Require valid-user
</Location>
|