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).
> 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" ?
> Itamar O.
Received on 2010-02-11 13:28:20 CET