You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by James Williamson <jw...@asitinc.com> on 2005/09/07 20:10:58 UTC
2 separate repositories with separate access control
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?
Thanks
James Williamson
Re: 2 separate repositories with separate access control
Posted by Johan Appelgren <jo...@gmail.com>.
On 9/7/05, James Williamson <jw...@asitinc.com> 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? > > Thanks > > James Williamson >
Sure. Just add another 'Location' for your other repository.
<Location /svn2> DAV svn SVNParentPath C:/SVN2 AuthType Basic AuthName "Subversion repositories" AuthUserFile someotherpasswd #AuthzSVNAccessFile svnaccessfile Require valid-user </Location>
/Johan
Re: 2 separate repositories with separate access control
Posted by John Duprey <jo...@gmail.com>.
Just a follow up, c:/svn would have to be a parent path for that to work and
for there to be repository directories under c:/svn ..:
<Location /svn>
DAV svn
SVNParentPath C:/svn
On 9/7/05, John Duprey <jo...@gmail.com> wrote:
>
> 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
> >
> >
>
Re: 2 separate repositories with separate access control
Posted by John Duprey <jo...@gmail.com>.
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 <bi...@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
>
>
Re: 2 separate repositories with separate access control
Posted by William Nagel <bi...@stagelogic.com>.
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