我無法弄清楚這一點。我嘗試從Netbeans導入一個新項目到svn倉庫並獲得403 Forbidden。我今天就在我的服務器上安裝了svn。我可以通過瀏覽器獲得它,儘管它是空的,因爲我還沒有導入我的項目。SVN錯誤403禁止
Apache的HTML文件的路徑爲/ var/WWW 我安裝在/ var將svn/SVN
這是結構的/ var/SVN
[[email protected] svn]# ls -lR /var/svn
/var/svn:
total 4
drwxrwxrwx 7 apache apache 4096 2010-03-26 10:18 repo
/var/svn/repo:
total 36
drwxrwxrwx 2 apache apache 4096 2010-03-26 09:47 conf
drwxrwxrwx 3 apache apache 4096 2010-03-26 10:18 dav
drwxrwsrwx 6 apache apache 4096 2010-03-26 11:19 db
-rwxrwxrwx 1 apache apache 2 2010-03-26 09:47 format
drwxrwxrwx 2 apache apache 4096 2010-03-26 09:47 hooks
drwxrwxrwx 2 apache apache 4096 2010-03-26 09:47 locks
-rwxrwxrwx 1 apache apache 229 2010-03-26 09:47 README.txt
-rwxrwxrwx 1 apache apache 15 2010-03-26 09:47 svnauth
-rwxrwxrwx 1 apache apache 43 2010-03-26 09:48 svnpass
/var/svn/repo/conf:
total 12
-rwxrwxrwx 1 apache apache 1080 2010-03-26 09:47 authz
-rwxrwxrwx 1 apache apache 309 2010-03-26 09:47 passwd
-rwxrwxrwx 1 apache apache 2279 2010-03-26 09:47 svnserve.conf
/var/svn/repo/dav:
total 4
drwxrwxrwx 2 apache apache 4096 2010-03-26 11:19 activities.d
/var/svn/repo/dav/activities.d:
total 0
/var/svn/repo/db:
total 48
-rwxrwxrwx 1 apache apache 2 2010-03-26 09:47 current
-rwxrwxrwx 1 apache apache 22 2010-03-26 09:47 format
-rwxrwxrwx 1 apache apache 1920 2010-03-26 09:47 fsfs.conf
-rwxrwxrwx 1 apache apache 5 2010-03-26 09:47 fs-type
-rwxrwxrwx 1 apache apache 2 2010-03-26 09:47 min-unpacked-rev
-rwxrwxrwx 1 apache apache 4096 2010-03-26 09:47 rep-cache.db
drwxrwsrwx 3 apache apache 4096 2010-03-26 09:47 revprops
drwxrwsrwx 3 apache apache 4096 2010-03-26 09:47 revs
drwxrwsrwx 2 apache apache 4096 2010-03-26 11:19 transactions
-rwxrwxrwx 1 apache apache 2 2010-03-26 11:19 txn-current
-rwxrwxrwx 1 apache apache 0 2010-03-26 09:47 txn-current-lock
drwxrwsrwx 2 apache apache 4096 2010-03-26 11:19 txn-protorevs
-rwxrwxrwx 1 apache apache 37 2010-03-26 09:47 uuid
-rwxrwxrwx 1 apache apache 0 2010-03-26 09:47 write-lock
/var/svn/repo/db/revprops:
total 4
drwxrwsrwx 2 apache apache 4096 2010-03-26 09:47 0
/var/svn/repo/db/revprops/0:
total 4
-rwxrwxrwx 1 apache apache 50 2010-03-26 09:47 0
/var/svn/repo/db/revs:
total 4
drwxrwsrwx 2 apache apache 4096 2010-03-26 09:47 0
/var/svn/repo/db/revs/0:
total 4
-rwxrwxrwx 1 apache apache 115 2010-03-26 09:47 0
/var/svn/repo/db/transactions:
total 0
/var/svn/repo/db/txn-protorevs:
total 0
/var/svn/repo/hooks:
total 36
-rwxrwxrwx 1 apache apache 1955 2010-03-26 09:47 post-commit.tmpl
-rwxrwxrwx 1 apache apache 1638 2010-03-26 09:47 post-lock.tmpl
-rwxrwxrwx 1 apache apache 2267 2010-03-26 09:47 post-revprop-change.tmpl
-rwxrwxrwx 1 apache apache 1567 2010-03-26 09:47 post-unlock.tmpl
-rwxrwxrwx 1 apache apache 3404 2010-03-26 09:47 pre-commit.tmpl
-rwxrwxrwx 1 apache apache 2410 2010-03-26 09:47 pre-lock.tmpl
-rwxrwxrwx 1 apache apache 2764 2010-03-26 09:47 pre-revprop-change.tmpl
-rwxrwxrwx 1 apache apache 2100 2010-03-26 09:47 pre-unlock.tmpl
-rwxrwxrwx 1 apache apache 2758 2010-03-26 09:47 start-commit.tmpl
/var/svn/repo/locks:
total 8
-rwxrwxrwx 1 apache apache 139 2010-03-26 09:47 db.lock
-rwxrwxrwx 1 apache apache 139 2010-03-26 09:47 db-logs.lock
我已經得到的httpd的.conf裝載svn.conf其中包含:
<Location /svn>
DAV on
DAV svn
#SVNParentPath /var/svn
SVNPath /var/svn/repo
Authtype Basic
AuthName "Subversion"
AuthUserFile /var/svn/repo/svnpass
Require valid-user
AuthzSVNAccessFile /var/svn/repo/svnauth
</Location>
完整的錯誤信息是:
org.tigris.subversion.javahl.ClientException: RA layer request failed
Server sent unexpected return value (403 Forbidden) in response to CHECKOUT request for '/svn/!svn/bln/0'
在/ var/SVN /回購/ svnauth:
[[email protected] /]# cat /var/svn/repo/svnauth
[/]
user = rw
對不起,令人難以置信的長帖子,但我認爲更多的信息將小於更好。我現在一直在煩惱這個問題很長一段時間。
'/ var/svn/repo/svnauth'文件的內容是什麼? – 2010-03-26 15:40:09
你不需要'DAV'行,但我不認爲它會導致你的錯誤。 – 2010-03-26 15:41:10
無法弄清楚如何在這個小方塊中進行格式化,我在原始文章的底部添加了/ var/svn/repo/svnauth。 – Bocochoco 2010-03-26 16:08:15