2

我安装并设置了 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...

授权:

[/]
* = 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>

我究竟做错了什么?

4

1 回答 1

1

我为运行 Apache 的用户提供了读/写访问权限,现在一切正常。

在此处输入图像描述

于 2012-12-12T18:45:57.250 回答