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

RE: authz conf file & multiple repositories

From: Cooke, Mark <mark.cooke_at_siemens.com>
Date: Thu, 1 Apr 2010 12:10:21 +0100

Hello Mauro,

> I'm using a multiple repositories configuration of subversion.
> If I don't use the authz conf file I can browse the list of
> repositoris (allowen in http.conf with directive
> SVNListParentPath On).
> If I use authz conf file apache le tme access only to
> different repositories but not to the "index" list of them.
> Is it possible to both use authz file and see the list of
> repositories?
>
Yes, I do. If I remember correctly, the issue is with how you configure
apache for your sites and if you use the slash on the end of the path.
Excerpts from my working configuration follow:

<Location /svn/department1/>
    DAV svn
    SVNIndexXSLT "/subversion/svnindex.xsl"
    SVNParentPath D:/svn/department1/
    SVNListParentPath On
    # restrict access to subversion repository paths...
    AuthzSVNAccessFile D:/svn/department1/svn-users.txt
</Location>

...I have multiple ParentPath repo-groups using different <Location>s.
The important bit was using the '/' at the end of the location string so
that you can grant (at least) read permission in your AuthzSVNAccessFile
for the root directory:

# Give all authenticated users read access to the root
# NB: use "* = " for all [repo:/] sections to remove access
[/]

I hope that helps!

~ Mark C
Received on 2010-04-01 13:10:58 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.