I have been trying to set up Apache to access subversion repositories such that:
- Makes use of repository collections, i.e.
SVNParentPath
points to a folder containing repositories. - Uses
SVNMasterURI
to transparently proxy commits to a master server.
My initial attempt was like this:
<Location "/collection">
DAV svn
SVNParentPath /path/to/collection
SVNMasterURI http://master/collection
SVNListParentPath on
AuthzForceUsernameCase Lower
AuthzSVNAccessFile /path/to/access-file
</Location>
With this configuration, the transparent proxy commits work as intended. However, when I try to browse to http://svn-server/collection/
i get 403 Forbidden
and the error log contains The URI does not contain the name of a repository.
.
Trailing slashes seems to have great importance here, so after trying out all combinations of trailing slash on Location
, SVNParentPath
and SVNMasterURI
I have found that:
- For
SVNListParentPath
to work,Location
must have a trailing slash. - For
SVNMasterURI
to work,Location
must not have a trailing slash.
All of this is on Ubuntu 12.04, Apache 2.2.22, mod_dav_svn 1.6.17dfsg-3ubuntu3.
My question is:
Is there a way to use SVNListParentPath
and SVNMasterURI
at the same time?