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

301 Moved Permanently

From: Miller, Daniel J. <djmiller_at_anl.gov>
Date: 2005-11-12 01:15:43 CET

I couldn't find an answer for this error, but have sorted it out and
thought others might find it useful.
 
Problem was that the top level of the repository could be browsed
through http, but tortoise gave error 301 "Moved Permanently" if
attempts were made to access the repository. Note that this is on a
Windows SubVersion server, but the same error appears to happen in some
Linux installations (though I don't run into it in my own Linux
installations of SubVersion). Apparently browser access through dav_svn
can require Linux style slashes for the path, while repository access
uses Windows style backslashes for the path. So the following example
of mixed path formats for location and directory cures the problem:
 
<Location /Docs>
    DAV svn
    SVNPath "C:/svn/documents/Docs"
    Order Deny,Allow
    Deny from All
    Allow from 111.111.11
    AuthType Basic
    AuthName "repository"
    AuthUserFile "C:\Program Files\Apache Group\Apache2\passwords"
    Require valid-user
</Location>
<Directory "C:\svn\documents\Docs">
    DAV svn
    SVNPath "C:\svn\documents\Docs"
    Order Deny,Allow
    Deny from All
    Allow from 111.111.11
    AuthType Basic
    AuthName "repository"
    AuthUserFile "C:\Program Files\Apache Group\Apache2\passwords"
    Require valid-user
</Directory>
 
I'm sure there is a cleaner way of doing this, but the above works.

 

--
Received on Sun Nov 13 22:28:16 2005

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

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