[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Reusing authz file between SVNPath & SVNParentPath

From: Itamar O <itamarost_at_gmail.com>
Date: Fri, 14 May 2010 12:00:39 +0300

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.
Received on 2010-05-14 11:01:15 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.