求助:apache与subversion出现403 forbidden错误
我用的是apache_2.2.11-win32-x86-no_ssl.msi和Setup-Subversion-1.5.3.msi两个版本
apache的httpd.conf文件最后部分的内容如下
#配置subversion用户权限
<Location /svn>
DAV svn
SVNParentPath D:/SVN/repository/
#声明 accessfilepolicy 文件,目的是确认Group分类和目录的访问权限
AuthzSVNAccessFile D:/SVN/commonconf/accessfilepolicy
# only authenticated users may access the repository
Require valid-user
# For any operations other than these, require an authenticated user.
#<LimitExcept GET PROPFIND OPTIONS REPORT>
#Require valid-user
#</LimitExcept>
# 声明userauthofapachedav文件,其内容是各个用户的md5密码
AuthType Basic
AuthName "HFSVB AuthName"
# AuthUserFile D:/SVN/commonconf/userauthofapachedav
AuthUserFile d:/svn/passwords
</Location>
其中设置访问权限的D:/SVN/commonconf/accessfilepolicy文件内容如下:
#this file communicate with httpd file''s Location Tag ,per file per Tag
#like svnserve.conf here section is [repos-name:path] or [path]
#if you use SVNParentPath in httpd.conf then here you MUST use repository name
#if you use SVNPath ,no problem
#r read w write
#don''t have any right to parser:/src/ of user guest
#[repository名字:path]
#[parser:/src/]
#guest =
[groups]
administrator = admin
developer = tester
everyone = admin,tester
#default no one has right to repos,so use * to everyone
[parser:/] #根目录下所有的文件和目录,又继承关系
* = r #默认的所有人都有 读权限
@developer = rw #这就表明只有developer(tester)才有读写权限
密码文件AuthUserFile d:/svn/passwords是用htpasswd生成的,内容如下
admin:guerying
创建版本库d:\svn\repository
但是我在访问http://localhost/svn/repository的时候总出现如下错误:
Forbidden
You don't have permission to access /svn/repository on this server.
上网查了一下说是访问多库根目录的问题,于是在repository下建立了parser文件夹
访问http://localhost/svn/repository/parser时仍然出现上述错误
总之无论我访问哪个路径,都会出现上述错误,到底是什么原因呢?
安装apache时有文章提示说要设置对目录的完全读写权限,是这个原因嘛?
如果是又该如何设置呢?
请大侠不吝赐教~
搜索更多相关主题的帖子:
apache subversion 403 forbidden 禁止访问