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

RE: RE: One Repository, Multiple URLs

From: Tom Kielty <tom.kielty_at_calabrio.com>
Date: 2007-07-26 23:26:48 CEST

I have a similar issue I am trying to solve. My repo used AD
authentication. I have a need to create a anonymous access to a
particular part of the repo that needs to be read only. But I have not
had much luck getting the read only part to work using the following
method?

 

Any ideas?

 

Thanks

 

Tom

 

________________________________

From: Hartleroad, James M [EQ] [mailto:James.M.Hartleroad@Embarq.com]
Sent: Monday, July 02, 2007 2:12 PM
To: Cory Trese; users@subversion.tigris.org
Subject: RE: One Repository, Multiple URLs

 

You can define two locations in the httpd.conf file, for example

 

 

<Location /svn_group1/>
  DAV svn
  SVNParentPath "/data/repos"
  SVNListParentPath On
  #Authorization control
  AuthzSVNAccessFile "/data/repos/svnaccess-file"
  #Access Control
  Require valid-user
  AuthName "xxxx - Development SVN Repository"
  AuthType Basic
  AuthUserFile "/data/repos/svnpasswd-file"
</Location>

 

<Location /svn_group2/>
  DAV svn
  SVNParentPath "/data/repos"
  SVNListParentPath On
  #Authorization control
  AuthzSVNAccessFile "/data/repos/svnaccess-file"
  #Access Control
  Require valid-user
  AuthName "xxxx - Development SVN Repository"
  AuthType Basic
  AuthUserFile "/data/repos/svnpasswd-file"
</Location>

 

You can use the same access files or different ones and the URLs would
be http://xxxxx/svn_group1/src_code and http://xxxxx/svn_group2/src_code
respectivly.

 

 

James Hartleroad, Embarq Corporation
Voice: 913.534.7933
KSOPKC 0901 - 9342
9350 Metcalf Ave, Overland Park KS 66212-1474

 

 

________________________________

From: Cory Trese [mailto:cory.trese@gmail.com]
Sent: Monday, July 02, 2007 11:57 AM
To: users@subversion.tigris.org
Subject: One Repository, Multiple URLs

Hello,

I have run into a Subversion question that I am unable to answer myself
and I thought I would post it here in hope that someone can help me.

Some background on my setup.
    Server:SVN 1.2, Apache 1.2, Windows 2003. 20-some repositories
hosted using FSFS
    Clients: TortoiseSVN, WindowsXP

My issue is that (for political reasons) I need to have the same
repository known by two URLs. For example "/svn/group1_code" and
"/svn/group2_code" both need to point to "src_code" in the repository.

I have considered doing this in my Apache2 configuration using "SVNPath"
instead of "SVNParentPath"

I would have two configuration sections, both using SVNPath to link
"/SubversionRepositories/src_code/" to "svn/group1_code" and
"svn/group2_code" in svn.conf

Is this possible? I am concerned that this may cause contention or some
other side effect in the repository.

Thanks in advance!

-- 
Cory Trese
ph#:     937-609-9644
e-m:    cory.trese@gmail.com
www:  http://www.corytrese.com/ 
Received on Thu Jul 26 23:25:56 2007

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.