出现403 forbidden没有权限错误的时候,需要重新配置 accesspolicy 文件。要点是针对每个repository配置权限。
参看 http://bbs.iusesvn.com/thread-72-1-1.html 这个文章里的详细解析。摘录一段话如下:
[quote]
To be more specific: the value of the section-names are either of the form [repos-name:path] or the form [path]. 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 [/some/dir] 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
[/quote]
也就是说在多个repository的时候,你需要使用用如下的语法配置:
[trunk:/]
@admin = rw
@committers = r
* =
[/] 是匹配所有的根。
缺省配置大部分的人都是[/],所以像我一样,新增加一个repository的时候,有403权限问题。
参看 http://bbs.iusesvn.com/thread-72-1-1.html 这个文章里的详细解析。摘录一段话如下:
[quote]
To be more specific: the value of the section-names are either of the form [repos-name:path] or the form [path]. 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 [/some/dir] 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
[/quote]
也就是说在多个repository的时候,你需要使用用如下的语法配置:
[trunk:/]
@admin = rw
@committers = r
* =
[/] 是匹配所有的根。
缺省配置大部分的人都是[/],所以像我一样,新增加一个repository的时候,有403权限问题。
本文介绍了解决SVN中403 Forbidden错误的方法。重点在于正确配置accesspolicy文件,特别是当存在多个repository时,需指定每个repository的权限。文中提供了具体的配置示例。
2006

被折叠的 条评论
为什么被折叠?



