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

Re: Fwd: Serving internal SVN path via Apache

From: Neels J Hofmeyr <neels_at_elego.de>
Date: Thu, 11 Feb 2010 13:27:41 +0100

Itamar O wrote:
> Relocating the question to the correct mailing list + clarification:
> I am not talking about serving multiple repositories with SVNParentPath.
> I have a single repository with the following layout:
> root (@ /var/svn/repos)
> |- projA
> |- projB
> |- ...
> Each project has its own virtual host on Apache,
> with its own DNS's (e.g. www.projA.com <http://www.projA.com> &
> svn.projA.com <http://svn.projA.com>).
> I want that the svn.projA.com <http://svn.projA.com> virtual host will
> be directed to root/projA,
> so that users of projA SVN are not even aware of other projects.
> Is this possible?

What comes to my mind is a URL rewrite in apache before it hits the DAV
(google for some beginners' tutorial for mod_rewrite). i.e. httpd-wise
redirect svn.proja.com to your.main.server/repos/sub/folder/proja.

Not sure if there will be side problems appearing. Technically, the user is
then via mod_rewrite not able to ask for URLs other than below proja/, while
the repository would still allow that if any got through.

It's hacky ;)
Not sure if there's a better way other than having dedicated repositories
per project (which is also an option).


> Thanks,
> Itamar O.
> ---------- Forwarded message ----------
> From: *Itamar O* <itamarost_at_gmail.com <mailto:itamarost_at_gmail.com>>
> Date: Wed, Feb 10, 2010 at 11:00 PM
> Subject: Serving internal SVN path via Apache
> To: dev_at_subversion.apache.org <mailto:dev_at_subversion.apache.org>
> Is there a way to configure Apache to serve a "scoped" repository?
> e.g., if my repository root is at /var/svn/repos,
> and I have top-level project-structure,
> I want something like:
> <Location /projA>
> DAV svn
> SVNPath /var/svn/repos/projA
> # (this doesn't work..)
> # Maybe something like "SVNPath /var/svn/repos" & "SVNScope projA" ?
> </Location>
> Thanks,
> Itamar O.

Received on 2010-02-11 13:28:20 CET

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.