如何在Apache + SVN上使用SVNParentPath指令列出所有存储库?

Mic*_*ren 18 svn apache2 mod-dav-svn

我正在通过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 /禁止回复.我想看看是否有回购清单.那可能吗?

Jas*_*yon 42

添加此行

SVNListParentPath on
Run Code Online (Sandbox Code Playgroud)

在SVNParentPath下面.重启apache.

  • 我必须添加一个尾随/到我的位置(<Location/svn />)来使这个工作.谢谢!http://www.svnforum.org/2017/viewtopic.php?p=21502&sid=888ad3d666f135fb6251766f39a9dd2c (7认同)