使用apache命令创建访问用户及口令:
bin\htpasswd -c passwd xxx
访问策略控制文件
accesspolicy -> apache\
[groups]
#人员权限分组
administrator = admin
code-developers = lib,zhuj,huj,zhuyd,liuy,panggc,shaohy
core-developers = lib,zhuj
testers = zhangyc,zhour
deployers = zhangyc,lib
[/]
#所有目录的读取权限
@administrator = rw
@code-developers = r
@core-developers = r
@testers = r
@deployers = r
[code:/src]
#code库中的代码的读取与更新权限
@code-developers = rw
[code:/test-src]
#code库中的测试代码的读取与更新权限
@code-developers = rw
[code:/resource]
#资源文件与配置文件的读取与更新权限
@deployers = rw
[code:/web/biz]
#业务JSP页面代码的读取与更新权限
@code-developers = rw
[code:/web/common]
#公共模块JSP页面代码的读取与更新权限
@core-developers = rw
[code:/web/sysconfig]
#系统配置JSP页面代码的读取与更新权限
@core-developers = rw
修改apache配置文件:httpd.conf
增加以下内容:
<Location /svn>
DAV svn
SVNParentPath E:\SVN
AuthType Basic
AuthName "Subversion repository"
AuthUserFile passwd
AuthzSVNAccessFile accesspolicy
Satisfy Any
Require valid-user
</Location>
注:如果有中文路径,将该文件转换为UTF-8编码格式.
参考文章:http://www.subversion.org.cn/index.php?option=com_content&task=view&id=78&Itemid=91
posted on 2007-01-22 16:14
Lib 阅读(3578)
评论(0) 编辑 收藏 所属分类:
服务配置