Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
Subversion error: Repository moved permanently to please relocate

I have some trouble with my own subversion server. At web view there is no problem but if anyone wants to checkout via client he gets the following message:

svn: Repository moved permanently to 'XYZ'; please relocate

The shown 'new' location (XYZ) is the exactly same I submit in parameters.

My setup:

<VirtualHost *:80>
        DocumentRoot /var/www/htdocs/svn
        <Directory /var/www/htdocs/svn/>
                Options SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>
        <Location /repos/>
                DAV svn
                SVNParentPath /var/www/htdocs/svn/repos
                SVNListParentPath On
                SVNAutoversioning On
                SVNIndexXSLT /svnindex.xsl
                SetOutputFilter DEFLATE
                AuthzSVNAccessFile /var/www/config/svn.authz
                AuthType Basic
                AuthName "Subversion Repository"
                AuthUserFile /var/www/config/svn.passwd
                Require valid-user
                ModMimeUsePathInfo On
        </Location>
</VirtualHost>

Again: I can watch/download my repos/files via webservice but can't checkout via client.

share|improve this question

marked as duplicate by Shane Madden, Ward, Iain, Scott Pack, mailq Oct 24 '11 at 18:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Hi Shane, it seems so. My fault. –  burnersk Oct 24 '11 at 16:56

1 Answer 1

up vote 1 down vote accepted

It looks like /var/www/htdocs/ is the document root of Apache. If so, it is the reason for this behavior because Apache don't know whether to serve the physical path, or pass the request to the mod_dav_svn. The solution is move the root svn to the outside of Apache's document root, for e.g:

<Location /repos/>
    DAV svn
    SVNParentPath /home/svn/repos
    ...
</Location>
share|improve this answer
    
Thanks quanta, I changed the DocumentRoot to /var/www/htdocs/svn/public (and public files) and it work now. –  burnersk Oct 24 '11 at 16:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.