[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: Jerome Asselin <jerome.asselin_at_crchum.qc.ca>
Date: 2005-09-19 19:55:31 CEST

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, 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>

Cheers,
Jerome

-- 
Veuillez mettre  jour mon courriel dans votre carnet d'adresses.
Please update my email in your address book.
Jerome Asselin, Agent de recherche, RHCE
CHUM -- Centre de recherche
3875 rue St-Urbain, 3e etage // Montreal QC  H2W 1V1
Tel.: 514-890-8000 Poste 15914; Fax: 514-412-7106
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 19 19:58:09 2005

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