我安装并设置了BitNami Redmine Stack并创建了存储库:
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.passwd的一部分:
htpasswd -c -m /etc/svn-auth.htpasswd someuser
someuser:$apr1$bTN...
AuthZ的:
[/]
* = r
[repository0:/]
someuser = rw
当我浏览此网址时:http://remote-linux-host:81/svn/repository0/
我收到以下内容:
我输入凭据并看到:
Forbidden
You don't have permission to access /svn/repository0/ on this server.
对于此网址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: 'someuser' 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: 'someuser' 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: 'someuser' 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 = someuser
[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>
我做错了什么?我非常感谢这些信息。谢谢大家。
答案 0 :(得分:1)
我为运行Apache的用户提供了读/写访问权限,现在一切正常。