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

出现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权限问题。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值