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

Re: (Repost) Can Apache root be a subdirectory of the repository root?

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-10-16 15:14:20 CEST

On Oct 16, 2005, at 00:27, Phil Endecott wrote:

> I have a single subversion repository that includes several projects.
> My Apache configuration has virtual hosts for several domains. I am
> able to access projectA's code as follows:
> http://www.example.org/svn/projectA/
> I would like to be able to access it at
> http://svn.projectA.org/
> I can edit the virtual-host configuration for svn.projectA.org to
> include something like
> <Location />
> DAV svn
> SVNPath /var/lib/svn
> and this would allow me to use
> http://svn.projectA.org/projectA/
> but I want to get rid of the trailing projectA. I think I need
> some way
> of telling mod_dav_svn that it should not start at the root of the
> repository. I was hoping that there was a mod_sav_svn directive to do
> this, but I can't see anything. Is there a way to do this?

You want to have a vhost for a subset of a repository. Is it for
people using the Subversion client with that subset, or for people
viewing it in a web browser? If the latter, the usual way would be to
have a checkout of that part of the repository and set Apache's
DocumentRoot to point to the working copy. The working copy can be
automatically updated by a post-commit hook so that it is always up-


This also enables you to have more than just static HTML; works for
scripting languages, CGI scripts, etc.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Oct 16 15:16:58 2005

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.