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

Re: request failed: 301 Moved Permanently

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2005-09-19 20:12:41 CEST

On 9/19/05, Jerome Asselin <jerome.asselin@crchum.qc.ca> wrote:
> On Mon, 2005-09-19 at 13:15 +0200, Erik Huelsmann wrote:
> > On 9/19/05, Ryan Schmidt <subversion-2005@ryandesign.com> wrote:
> > > On Sep 18, 2005, at 23:21, Erik Huelsmann wrote:
> > >
> > > > http://subversion.tigris.org/faq.html#http-301-error
> > >
> > > As an Apache administrator, I gotta say I'm pretty baffled by what's
> > > being said there:
> > >
> > > > For example, if you've exported a repository as <Location /www/
> > > > foo>, but you've also set your DocumentRoot to be /www, then you're
> > > > in trouble. When the request comes in for /www/foo/bar, apache
> > > > doesn't know whether to find a real file named /foo/bar within your
> > > > DocumentRoot, or whether to ask mod_dav_svn to fetch a file /bar
> > > > from the /www/foo repository. Usually the former case wins, and
> > > > hence the "Moved Permanently" error.
> > > >
> > > > The solution is to make sure your repository <Location> does not
> > > > overlap or live within any areas already exported as normal web
> > > > shares.
> > >
>
> Thanks for the FAQ link! I've managed to get it to work by placing my
> svn repository outside the scope of the DocumentRoot. That way, I CANNOT
> get a listings the repositories at https://archivos/svn,

Yup. That's correct, but: I just saw a commit pass by which makes this
possible in 1.3 with an Apache configurantion directive!

> but I can check
> out the repository with:
>
> svn checkout https://localhost/svn/repos wc
>
> My apache settings are:
>
> DocumentRoot "/var/www/html"
> <Location /svn>
> DAV svn
> SVNParentPath /var/www/svn
> # etc.
> </Location>
bye,

Erik.
Received on Mon Sep 19 20:15:28 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.