ustbwang 发表于 2017-1-12 06:42:38

svn+webdav+apache配置多个代码库的权限设置

出现403 forbidden没有权限错误的时候,需要重新配置 accesspolicy 文件。要点是针对每个repository配置权限。

参看 http://bbs.iusesvn.com/thread-72-1-1.html 这个文章里的详细解析。摘录一段话如下:

引用

To be more specific: the value of the section-names are either of the form or the form . If you're using the SVNParentPath directive, then it's important to specify the repository names in your sections. If you omit them, then a section like will match the path /some/dir in every repository. If you're using the SVNPath directive, however, then it's fine to only define paths in your sections—after all, there's only one repository



也就是说在多个repository的时候,你需要使用用如下的语法配置:


@admin = rw
@committers = r
* =

[/] 是匹配所有的根。

缺省配置大部分的人都是[/],所以像我一样,新增加一个repository的时候,有403权限问题。
页: [1]
查看完整版本: svn+webdav+apache配置多个代码库的权限设置