[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 23:28:17 +0100

Itamar O wrote:
> Thanks Neels,
> Just tried that.
> When accessing svn.proja.com <http://svn.proja.com> from a browser it
> worked fine.
> But checkout & list on svn.proja.com <http://svn.proja.com> failed with
> the message:
> "/svn/projA/!svn/vcc/default path not found"

Heh, of course, sorry for the stupid suggestion: the client needs to know
the server's root URL. That's not because it needs access to the root of the
file tree stored *in* your repository, but because it needs access to the
proper communication interfaces, which work relative to the repository root.
Can't work.

So I guess the only way is that svn.proja.com actually points to a
repository root, which would imply that you need a separate repository per
project.

At apache.org, we have repos URLs like
http://svn.apache.org/repos/asf/<project-name>/
(e.g. 'httpd', 'subversion', ...)

You decide. :)

~Neels

>
> Any ideas?
>
> On Thu, Feb 11, 2010 at 2:27 PM, Neels J Hofmeyr <neels_at_elego.de
> <mailto:neels_at_elego.de>> wrote:
>
> 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>
> <http://www.projA.com> &
> > svn.projA.com <http://svn.projA.com> <http://svn.projA.com>).
> >
> > I want that the svn.projA.com <http://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 <http://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).
>
> ~Neels
>
>
> >
> > Thanks,
> > Itamar O.
> >
> > ---------- Forwarded message ----------
> > From: *Itamar O* <itamarost_at_gmail.com <mailto:itamarost_at_gmail.com>
> <mailto: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>
> <mailto: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 23:29:01 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.