SVN Repo 无需身份验证即可工作

SVN Repo works without authentication

我使用以下方法创建了 SVN 主机:

<Location /svn>
     DAV svn
     SVNParentPath /home/xxx/xxx/xxx/xxx/Main_Folder/company-1
     AuthType Basic
     SVNListParentPath On

     AuthName "Test"

     <LimitExcept GET PROPFIND OPTIONS REPORT>
        Require valid-user
     </LimitExcept>
  </Location>`

虽然我在 svnserve.conf 中指定了用户权限,但似乎 "take it" 没有,因为我可以在没有任何 user/password 提示的情况下访问存储库(见下文)。

你能指出我做错了什么吗?

谢谢!

看了文档,好像是你用错了配置文件。

仅文件 svnserve.conf do not have any effect in this particular case. Your server runs Apache and Apache does not process svnserve.conf. This configuration file is used by svnserve custom server 中的配置设置。