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

RE: One Repository, Multiple URLs

From: Hartleroad, James M [EQ] <James.M.Hartleroad_at_Embarq.com>
Date: 2007-07-02 21:12:10 CEST

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 Mon Jul 2 21:12:27 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.