You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Itamar O <it...@gmail.com> on 2010/05/14 11:00:39 UTC
Reusing authz file between SVNPath & SVNParentPath
Hi,
I am using Apache mod_dav_svn and mod_authz_svn for authorization
(authentication performed with mod_auth_ldap).
The same Apache server is used to serve multiple repositories using
SVNParentPath,
so in the <Location /svn> block I have
DAV svn
SVNParentPath C:\repositories
AuthzSVNAccessFile C:\repositories\authz
and the content of the authz file goes something like:
[groups]
...
[/]
# default is read-only for all repositories
* = r
[repA:/]
auth-stuff-for-repA
[repB:/]
auth-stuff-for-repB
...
this setup works great when users access http://server/svn/repX
but in addition I want to allow "shortcut URLs" to several
repositories (e.g. http://svn.projA.org/),
so I have (in the same Apache configuration) multiple virtual hosts
with ServerName svn.projX.org and <Location /> with:
DAV svn
SVNPath C:\repositories\repX
AuthzSVNAccessFile C:\repositories\authz
>From what I understand, when accessing via a virtual host, all
requests will be matched against the [/] block in the authz file,
since mod_dav_svn assumes the authz file specified is specific for the
repository being served (which is what happens in the described
configuration).
The question: is there a way to reuse the same authz file in both
cases? (SVNParentPath & SVNPath)
maybe some directive that I can add to the virtual host location block
telling mod_dav_svn to match all requests to "repX" and not "/"?
Thanks! (and sorry for the long post..)
Itamar O.