subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauro Gatti <mauro.l...@yahoo.com>
Subject Re: authz conf file & multiple repositories
Date Thu, 01 Apr 2010 11:42:13 GMT
Mark, you are right!
I added the final "/" and I can see the root directory.

Thanks Again

Regards

Mauro




________________________________
From: "Cooke, Mark" <mark.cooke@siemens.com>
To: users@subversion.apache.org
Cc: Mauro Gatti <mauro.list@yahoo.com>
Sent: Thu, April 1, 2010 1:10:21 PM
Subject: RE: authz conf file & multiple repositories

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



      
Mime
View raw message