---------- Forwarded message ----------
From: Laurent Somers <email@example.com>
Date: Apr 5, 2005 2:23 AM
Subject: Re: Subversion book 301 error [PATCH]
To: Ben Collins-Sussman <firstname.lastname@example.org>
Proposed change to http://subversion.tigris.org/faq.html#301-error:
I can see my repository in a web browser, but 'svn checkout' gives me an
error about "301 Moved Permanently". What's wrong?
It means your httpd.conf is misconfigured. Usually this error happens when
you've defined the Subversion virtual "location" to exist within two
different scopes at the same time.
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.
It means your httpd.conf is misconfigured or a conflict between real and
virtual paths. Usually this error happens when you've defined the Subversion
virtual "location" to exist within two different scopes at the same time. The
httpd.conf may be correctly configured, but if a real directory exists with
the same name as the virtual directory, you'll get this error too.
On Mar 29, 2005 8:50 PM, Ben Collins-Sussman <email@example.com> wrote:
> On Mar 27, 2005, at 7:27 PM, Laurent Somers wrote:
> > Hi,
> > I think the appendix B entry on the 301 error is incomplete. I had no
> > common paths in the httpd.conf, yet I got the error. The entry in the
> > SVN book did point me in the right direction though.
> > The reason was that there was a real subdirectory under the htdocs
> > root with the same name as the virtual one, so the cause was not
> > entirely within httpd.conf.
> > Suggested change:
> > <para>It means your httpd.conf is misconfigured or a conflict between
> > real and virtual paths. Usually this error happens when you've
> > defined the Subversion virtual <quote>location</quote> to exist within
> > two different scopes at the same time or that the virtual one
> > conflicts with a real one.</para>
> Appendix B is a woeful shadow of the 'real' FAQ on subversion's
> website. You can repost your suggestion as a patch to the
> project_faq.html file, and send to firstname.lastname@example.org?
> (Meanwhile, I'm trying to scheme up a way to automatically convert
> project_faq.html into docbook-xml, so the book can stay in sync!)
Received on Tue Apr 5 01:36:44 2005