我安裝和設置上的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用戶權限。 –