我正在通过Apache使用SVN,dav_svn_module如下所示:
<Location /svn>
DAV svn
SVNParentPath C:/svn_repository
AuthName "Subversion Repository"
...
</Location>
Run Code Online (Sandbox Code Playgroud)
这让我可以访问我的回购:
C:/svn_repository/repo1
C:/svn_repository/repo2
C:/svn_repository/repo3
Run Code Online (Sandbox Code Playgroud)
通过这些网址:
https://examples.com/svn/repo1
https://examples.com/svn/repo2
https://examples.com/svn/repo3
Run Code Online (Sandbox Code Playgroud)
这些网址效果很好.当我去/ svn(没有回购名称)时,我得到403 /禁止回复.我想看看是否有回购清单.那可能吗?
试图从我的SVN回购结账给我
svn: E195019: Redirect cycle detected for URL ...
但是,当我在某个(特定)代理服务器后面时,似乎只会出现此错误.
正如在其他帖子中所讨论的(参见towise svn给我"检测到URL'域/ svn'的重定向循环'"),如果SVN DAV配置错误,例如使用SVNParentPath,则应该使用SVNPath,则会发生此错误.但是,我的配置似乎是正确的 - 据我所知 - 问题只发生在代理后面.
存储库的设置或多或少是标准的,例如,
ServerAlias svn.mydomain.com
<Location /myrepo>
DAV svn
SVNPath /var/www/vhosts/mydomain.com/svn/myrepo
AuthType Basic
AuthName "mydomain svn"
AuthUserFile /var/www/vhosts/svn.mydomain.com/conf/htpasswd-myproject
# Allow read-only access to anyone, otherwise require
# require authentication
Require valid-user
</Location>