我安装和设置上的Linux 的Mandriva BitNami Redmine的堆栈和创建一个版本库 -访问通过WebDAV/DeltaV系统版本库 - 错误403,禁止
svnadmin create /var/svn/repository0/
我使用基本身份验证
的httpd.conf部分:
<Location>
DAV svn
SVNParentPath /var/svn
AuthName "Subversion Repository"
AuthType Basic
AuthUserFile /etc/svn-auth.passwd
Require valid-user
Satisfy Any
AuthzSVNAccessFile /var/svn/authz
</Location>
SVN-auth.p asswd
htpasswd -c -m /etc/svn-auth.htpasswd ivanov-void
...
ivanov-void:$apr1$bTN...
AuthZ的:
[/]
* = r
[repository0:/]
ivanov-void = rw
但是,当我从浏览器请求 -
http://remote-linux-host:81/svn/repository0/
我得到 -
我输入我的名字和密码,但 -
故宫
您没有权限访问/ SVN/repository0 /在此服务器上。
另一个细节 - 如果我要求这么 -
http://remote-linux-host:81/svn/
我得到 -
<D:error><C:error/><m:human-readable errcode="2">
Could not open the requested SVN filesystem
</m:human-readable></D:error>
如果我查看日志 -
error.log中
...
[Wed Dec 12 15:16:17 2012] [error] [client ..ip...] Failed to load the AuthzSVNAccessFile: /var/svn/authz:22: Option expected
[Wed Dec 12 15:16:17 2012] [error] [client ..ip...] Access denied: 'ivanov-void' GET svn:/repository0
[Wed Dec 12 15:16:20 2012] [error] [client ..ip...] Failed to load the AuthzSVNAccessFile: /var/svn/authz:22: Option expected
[Wed Dec 12 15:16:20 2012] [error] [client ..ip...] Access denied: 'ivanov-void' GET svn:/repository0
[Wed Dec 12 15:16:38 2012] [error] [client ..ip...] Failed to load the AuthzSVNAccessFile: /var/svn/authz:22: Option expected
[Wed Dec 12 15:16:38 2012] [error] [client ..ip...] Access denied: 'ivanov-void' GET svn:/repository0
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] (20014)Internal error: Can't open file '/var/svn/format': No such file or directory
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] Could not fetch resource information. [500, #0]
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] Could not open the requested SVN filesystem [500, #2]
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] Could not open the requested SVN filesystem [500, #2]
...
我做了一个小的修正文件AuthZ的 -
[groups]
developers = ivanov-void
[repository0:/]
@developers = rw
现在我要求 -
http://remote-linux-host:81/svn/repository0/
另一个错误,当我要求以上 -
<D:error><C:error/><m:human-readable errcode="2">
Could not open the requested SVN filesystem
</m:human-readable></D:error>
我是什么做错了?
我想,我需要给予我的Apache用户权限。 –