跪求svn高手,在windows下我搭建了svn+apache已经完成了,但是到最后最痛心啊!配置apache下的httpd.conf
<Location/svn>DAVsvnSVNListParentPathonSVNParentPathG:/svnrootAuthzSVNAccessFileG:/sv...
<Location /svn>
DAV svn
SVNListParentPath on
SVNParentPath G:/svnroot
AuthzSVNAccessFile G:/svnroot/rs7000/conf/authz
Require valid-user
AuthType Basic
AuthName "Subversion Repositories"
AuthUserFile G:/svnroot/rs7000/conf/users.auth
Require valid-user
</Location>
<Location /svn>
DAV svn
SVNListParentPath on
SVNParentPath G:/svnroot
AuthzSVNAccessFile G:/svnroot/cuge4a/conf/authz
Require valid-user
AuthType Basic
AuthName "Subversion Repositories"
AuthUserFile G:/svnroot/cuge4a/conf/users.auth
Require valid-user
</Location>
在这里放了俩个仓库。奇怪的是我去访问这俩个仓库,只能访问cuge4a的仓库,却无法访问rs7000的仓库。更奇怪的来了,我把下边的cuge4a去掉,就能访问rs7000了,我总结了这俩个仓库不能放在一起~放在一起只有最后一个能访问到,之前的都访问不了。不能访问的库提示403 无权限访问。
每个库的conf下passwd文件设置
[users]
chenying = baiapgy
(在apache的bin下创建htpasswd -cb users.auth chenying baiapgy之后把users.auth这个文件复制到库的conf下!)
每个库的conf下authz文件设置
[库名:/]
chenying = rw (我甚至把权限放到最大* = rw)
快来高手帮助我吧!!!呜呜~~~~ 展开
DAV svn
SVNListParentPath on
SVNParentPath G:/svnroot
AuthzSVNAccessFile G:/svnroot/rs7000/conf/authz
Require valid-user
AuthType Basic
AuthName "Subversion Repositories"
AuthUserFile G:/svnroot/rs7000/conf/users.auth
Require valid-user
</Location>
<Location /svn>
DAV svn
SVNListParentPath on
SVNParentPath G:/svnroot
AuthzSVNAccessFile G:/svnroot/cuge4a/conf/authz
Require valid-user
AuthType Basic
AuthName "Subversion Repositories"
AuthUserFile G:/svnroot/cuge4a/conf/users.auth
Require valid-user
</Location>
在这里放了俩个仓库。奇怪的是我去访问这俩个仓库,只能访问cuge4a的仓库,却无法访问rs7000的仓库。更奇怪的来了,我把下边的cuge4a去掉,就能访问rs7000了,我总结了这俩个仓库不能放在一起~放在一起只有最后一个能访问到,之前的都访问不了。不能访问的库提示403 无权限访问。
每个库的conf下passwd文件设置
[users]
chenying = baiapgy
(在apache的bin下创建htpasswd -cb users.auth chenying baiapgy之后把users.auth这个文件复制到库的conf下!)
每个库的conf下authz文件设置
[库名:/]
chenying = rw (我甚至把权限放到最大* = rw)
快来高手帮助我吧!!!呜呜~~~~ 展开
展开全部
改成下面这样的:
<Location /svn/rs7000>
DAV svn
SVNListParentPath on
SVNPath G:/svnroot/rs7000
AuthzSVNAccessFile G:/svnroot/rs7000/conf/authz
Require valid-user
AuthType Basic
AuthName "Subversion Repositories"
AuthUserFile G:/svnroot/rs7000/conf/users.auth
Require valid-user
</Location>
<Location /svn/cuge4a>
DAV svn
SVNListParentPath on
SVNPath G:/svnroot/cuge4a
AuthzSVNAccessFile G:/svnroot/cuge4a/conf/authz
Require valid-user
AuthType Basic
AuthName "Subversion Repositories"
AuthUserFile G:/svnroot/cuge4a/conf/users.auth
Require valid-user
</Location>
多个Location就要用SVNPath这种方式。一般一个项目一个库时就用这种多个单库模式。
<Location /svn/rs7000>
DAV svn
SVNListParentPath on
SVNPath G:/svnroot/rs7000
AuthzSVNAccessFile G:/svnroot/rs7000/conf/authz
Require valid-user
AuthType Basic
AuthName "Subversion Repositories"
AuthUserFile G:/svnroot/rs7000/conf/users.auth
Require valid-user
</Location>
<Location /svn/cuge4a>
DAV svn
SVNListParentPath on
SVNPath G:/svnroot/cuge4a
AuthzSVNAccessFile G:/svnroot/cuge4a/conf/authz
Require valid-user
AuthType Basic
AuthName "Subversion Repositories"
AuthUserFile G:/svnroot/cuge4a/conf/users.auth
Require valid-user
</Location>
多个Location就要用SVNPath这种方式。一般一个项目一个库时就用这种多个单库模式。
2011-12-21
展开全部
<Location /svn/rs7000>
DAV svn
SVNListParentPath on
SVNPath G:/svnroot/rs7000
AuthzSVNAccessFile G:/svnroot/rs7000/conf/authz
Require valid-user
AuthType Basic
AuthName "Subversion Repositories"
AuthUserFile G:/svnroot/rs7000/conf/users.auth
Require valid-user
</Location>
<Location /svn/cuge4a>
DAV svn
SVNListParentPath on
SVNPath G:/svnroot/cuge4a
AuthzSVNAccessFile G:/svnroot/cuge4a/conf/authz
Require valid-user
AuthType Basic
AuthName "Subversion Repositories"
AuthUserFile G:/svnroot/cuge4a/conf/users.auth
Require valid-user
</Location>
DAV svn
SVNListParentPath on
SVNPath G:/svnroot/rs7000
AuthzSVNAccessFile G:/svnroot/rs7000/conf/authz
Require valid-user
AuthType Basic
AuthName "Subversion Repositories"
AuthUserFile G:/svnroot/rs7000/conf/users.auth
Require valid-user
</Location>
<Location /svn/cuge4a>
DAV svn
SVNListParentPath on
SVNPath G:/svnroot/cuge4a
AuthzSVNAccessFile G:/svnroot/cuge4a/conf/authz
Require valid-user
AuthType Basic
AuthName "Subversion Repositories"
AuthUserFile G:/svnroot/cuge4a/conf/users.auth
Require valid-user
</Location>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<Location /svn>
<Location /svn>
两个都是一样的了,改一下
<Location /svn>
两个都是一样的了,改一下
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询