出现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权限问题。