tortoise svn giving me “Redirect cycle detected for URL 'domain/svn'”

前端 未结 8 2113
無奈伤痛
無奈伤痛 2020-12-03 10:59

I want to achieve a svn-root in /var/svn and repositories(projects) in there. I could get it to work in the browser (http://domain/url gives me \"Collection of repositories\

8条回答
  •  情深已故
    2020-12-03 11:37

    The problem for me was that I had a .htaccess RewriteRule in my document root, asking to add a trailing / to every URL not having one.

    Because of that, the SVN clients, trying to call URLs WITHOUT a trailing / such as "https://site/repos/project" got reidrected by apache to "https://site/repos/project/", so the SVN client tries to go to "https://site/repos/project" again, and so on.

    SOLUTION: Do not have any rule that add a trailing / that could affect your SVN urls.

提交回复
热议问题