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

Domain-specific Repository Roots

From: Bob Smith <bsmith_at_sudleyplace.com>
Date: 2006-12-17 03:42:25 CET

I've installed Subversion successfully as a standalone server
(svnserve -d). I'd like to use it in a particular way, but I don't
see how.

I want to run only one server on a machine which hosts several
domains, say example1.com, example2.com, etc., each of which may
potentially host one or more projects.

As such, I'd like to organize the repositories under one root (say
/repos) with subdirectories of something like /repos/example1.com,
/repos/example2.com, etc. each of which is a repository with one or
more projects.

Moreover (and here's the part I can't figure out), when a request
comes in to example1.com as svn://svn.example1.com, I would like it to
use the repository /repos/example1.com, etc. automatically rather than
making the user specify it in the URL such as
svn://svn.example1.com/example1.com, or the like.

The only place I've seen to specify a root is with the -r option in
svnserve which is static.

Essentially, I'm looking for a feature similar to HTTP/1.1 and
Apache's <VirtualHost> where the domain name is also part of the
request to the server, rather than just a means to obtain an IP
address. Perhaps this can be done were I to use the Apache server
approach instead of svnserve, except the ISP I'm using runs Apache
1.3.x -- I could install Apache 2.0 separately, but I thought I'd try
asking about this approach first.

Is there some way to accomplish this (through either svnserve or
Apache), or is this a feature request?

Bob Smith - bsmith_at_sudleyplace.com - http://www.sudleyplace.com

Received on Sun Dec 17 03:43:07 2006

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.