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

Re: 2 separate repositories with separate access control

From: John Duprey <john.duprey_at_gmail.com>
Date: 2005-09-07 22:30:06 CEST

Alternatively, you can have mutliple repositories under c:/svn by enabling
per-directory access control in the subversion apache module config:
# Only Needed if you decide to do "per-directory" access control.
LoadModule authz_svn_module modules/mod_authz_svn.so

AND defining the AuthzSVNAccessFile appropriately.

This way your base URL is the same /svn.

e.g. AuthzSVNAccessFile svnperms.conf:

# Read perms to all
[groups]
admin = jduprey, ...
coredev = jduprey, ...
intern = jeff, ...

# Everyone can read our repositories, admins and coredev can read and write
[/]
* = r
@admin = rw
@coredev = rw
@intern = rw

## svnscripts
[users:/svnscripts]
@admin = rw

## documentation
[documentation]
@admin = rw
@coredev = rw
@intern = r

AuthzSVNAccessFile

On 9/7/05, William Nagel <bill@stagelogic.com> wrote:
>
> On Sep 7, 2005, at 3:10 PM, James Williamson wrote:
>
> > Hello,
> >
> >
> >
> > I am trying to setup 2 separate repositories on the same server
> > each with different access control. I currently have one repository
> > and I would like to add a second. I am running Apache on a Windows
> > Server platform and my htpd.conf file contains the following
> > 'Location' block:
> >
> >
> >
> > <Location /svn>
> >
> > DAV svn
> >
> > SVNParentPath C:/SVN
> >
> > AuthType Basic
> >
> > AuthName "Subversion repositories"
> >
> > AuthUserFile passwd
> >
> > #AuthzSVNAccessFile svnaccessfile
> >
> > Require valid-user
> >
> > </Location>
> >
> >
> >
> > Is it possible to configure a second repository and use a separate
> > Apache password file to control access to the second repository?
>
> Maybe I'm missing something here, but I think you should just be able
> to add a second Location block for the second repository.
>
> -Bill
>
> >
> >
> > Thanks
> >
> >
> >
> > James Williamson
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
Received on Wed Sep 7 22:32:14 2005

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