Subversion 基于APACHE的权限设置(SVNParentPath):
在/home/svn下面建立了两个版本库:repo 和 foobar
apache的配置文件
DAV svn
SVNParentPath /home/svn
AuthzSVNAccessFile /home/svn/repo/conf/authz
#SVNListParentPath on
AuthType Basic
AuthName "Repo Auth"
AuthUserFile /etc/svn-aut-file
Require valid-user
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
AuthzSVNAccessFile指定的权限配置文件:
/home/svn/repo/conf/authz
[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average
[groups]
admin = jack,annie
[repo:/]
@admin = rw
[repo:/abc]
@admin = rw
[repo:/efg]
@admin = r
[foobar:/]
@admin = rw
使用 SVNParentPath 代替 SVNPath 来指定多个版本库、需要在定义版本库以及子目录的时候必须指定版本库的名称
阅读(336) | 评论(0) | 转发(0) |