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

Re: 301 with mod_dav / https

From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Wed, 12 Jan 2011 07:46:13 -0600

On Jan 12, 2011, at 05:47, fuzzy_4711 wrote:

> When I try to svn import . https://devel.example.com/svn/test/ -m
> "initial structure" --username=valid
> I am asked for my password and I get access. The response I get is:
> "svn: Das Projektarchiv wurde permanent nach
> "https://devel.example.com/svn/test/« verschoben; bitte umplatzieren"
> which means something like "The project archive has been permanently
> moved to .... please relocate". My apache log shows this:
> x.x.x.x - valid [12/Jan/2011:12:32:52 +0100] "OPTIONS /svn/test
> HTTP/1.1" 301 484 "-" "SVN/1.6.9 (r901367) neon/0.28.4".
>
> I have read about the 301 error in the FAQ. I think the reason mentioned
> there is not my problem. My box runs on Ubuntu 10.04 LTS.
>
>
> This is my Virtual Host setup:
>
> <VirtualHost x.x.x.x:443>
[snip]
> Alias /svn "/home/svn"
> <Directory /home/svn>
> AllowOverride all
> </Directory>
>
> <Location /svn>
> DAV svn
> SVNParentPath /home/svn
> SVNListParentPath on
> AuthzSVNAccessFile /etc/apache2/dav_svn.authz
> Order deny,allow
> deny from all
> satisfy any
> AuthType Digest
> AuthUserFile /etc/apache2/pwdigest_svn
> AuthName "Project_X"
> Require valid-user
> </Location>
> </VirtualHost>

Remove the lines:

       Alias /svn "/home/svn"
       <Directory /home/svn>
               AllowOverride all
       </Directory>

Apache is confused because you have told it you want it to serve /svn as static files located in /home/svn (the Alias directive and the <Directory /home/svn> section) and also that you want it to serve /svn as a collection of Subversion repositories (the <Location /svn> block); use only one or the other, depending on what you want (probably you want the <Location /svn> block only).
Received on 2011-01-12 14:47:00 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.