Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve svn: E195019: Redirect cycle detected, in my case?

I know there are other questions that look the same, but I wasn't able to find anything useful for my exact case.

My server's URL is: http://servername.domain.com My server has ZPanel installed, so the path to this in the server is: /var/zpanel/hostdata/username/public_html/servername_domain_com/

I created a subfolder "svn", set up SVN to use that folder and created repos inside it, changed the owner etc. Surfing to it works, requires login and then you can see "Revision 0". But when trying to check out or do anything, it will give the error from the title.

I installed SVN and put this as the config.

< Location /svn>    
DAV svn
SVNParentPath /var/zpanel/hostdata/username/public_html/servername_domain_com/svn    
AuthType Basic    
AuthName "Subversion repositories"
AuthUserFile /etc/svn-auth-users
Require valid-user
< / Location>

Do you have any idea why it isn't working? I didn't change the virtualhosts file, it simply contains the default link for the servername.domain.com.

Thanks!

like image 643
Kevin Van Ryckegem Avatar asked Mar 24 '14 16:03

Kevin Van Ryckegem


1 Answers

If /var/zpanel/hostdata/username/public_html/servername_domain_com/ is your DocumentRoot (i.e. /svn is physical subdirectory), you have misconfiguration from Apache's side:

Single path can not be physical directory and logical path, defined as Location, at the same time

You must to move SVNParentPath outside web-space

like image 113
Lazy Badger Avatar answered Sep 30 '22 17:09

Lazy Badger