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

Fwd: Subversion book 301 error [PATCH]

From: Laurent Somers <galdur_at_gmail.com>
Date: 2005-04-05 01:25:45 CEST

---------- Forwarded message ----------
From: Laurent Somers <galdur@gmail.com>
Date: Apr 5, 2005 2:23 AM
Subject: Re: Subversion book 301 error [PATCH]
To: Ben Collins-Sussman <sussman@red-bean.com>

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.
---------------------
 Suggested change:
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.

best regards,
Laurent
On Mar 29, 2005 8:50 PM, Ben Collins-Sussman <sussman@red-bean.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 dev@subversion.tigris.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!)
>
>

-- 
www.galdur.net <http://www.galdur.net>, 
-- 
www.galdur.net <http://www.galdur.net>,
Received on Tue Apr 5 01:36:44 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.