我在下面的人報告中有完全相同的問題,但可悲的是沒有爲我工作的解決方案。我有一個共同的父目錄下有多個subversion版本庫。我已經安裝了CollabNet Subversion Edge 2.0.0(用於Solaris 10/SPARC),並且保留了大部分默認的開箱即用功能。然後,我將svnadmin加載到存儲庫(它們從一個孤立網絡上的服務器轉儲)。用戶可以通過TortoiseSVN O.K查看單個存儲庫。但是當他們嘗試使用TortoiseSVN存儲庫瀏覽器時,它會給臭名昭着的「永久移動存儲庫」錯誤。我檢查過,Apache DocRoot和Subversion版本庫目錄不重疊,這似乎是這個問題的常見原因。存儲庫在/ opt/csvn/data下,Apache文檔根目錄是/ opt/csvn/www。以下是我相信相關的配置文件。它的行爲像SVNParentPath不起作用。我可以通過Firefox查看存儲庫(認證之後),我認爲這意味着Apache服務於該目錄而不是DAV?如果我telnet到端口80和「GET/svn」,它將返回302錯誤。如果我telnet到端口80和「GET/svn /」,我得到一個401(需要授權)。我已經在svn_viewvc_httpd.conf中嘗試了「Location/svn /」和「Location/svn」,但這並沒有幫助。TortoiseSVN回購瀏覽器錯誤:「版本庫永久移動到...」
非常類似的問題在這裏:
Repository Browser Only - "Repository moved permanently to… please relocate」
svn_viewvc_httpd.conf文件:
subversion # cat svn_viewvc_httpd.conf
#
#
# DO NOT EDIT THIS FILE IT WILL BE REGENERATED AUTOMATICALLY BY SUBVERSION EDGE
#
# If you must make a change to the contents of this file then copy and paste the
# content into the httpd.conf file and comment out the Include statement for
# this file. The httpd.conf file is not modified or generated and is safe for
# you to modify.
#
#
Include "/opt/csvn/data/conf/ctf_httpd.conf"
# SSL is off
LoadModule python_module lib/modules/mod_python.so.2.4
# Work around authz and SVNListParentPath issue
RedirectMatch ^(/svn)$ $1/
<Location /svn/>
DAV svn
SVNParentPath "/opt/csvn/data/repositories"
SVNReposName "CollabNet Subversion Repository"
AuthzSVNAccessFile "/opt/csvn/data/conf/svn_access_file"
SVNListParentPath On
Allow from all
AuthType Basic
AuthName "CollabNet Subversion Repository"
AuthBasicProvider csvn-file-users
Require valid-user
</Location>
<Directory "/opt/csvn/www/viewvc/docroot">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Alias /viewvc-static "/opt/csvn/www/viewvc/docroot"
ScriptAlias /viewvc "/opt/csvn/bin/mod_python/viewvc.py"
<Location /viewvc>
SetHandler mod_python
PythonDebug on
AddDefaultCharset UTF-8
SetEnv CSVN_HOME "/opt/csvn"
PythonPath "[r'/opt/csvn/lib', r'/opt/csvn/bin/mod_python', r'/opt/csvn/lib/viewvc']+sys.path"
PythonHandler handler
Allow from all
AuthType Basic
AuthName "CollabNet Subversion Repository"
AuthBasicProvider csvn-file-users
Require valid-user
</Location>
在此先感謝。我今天花了幾個小時,也許我只是想念那些顯而易見的事情。
您是否嘗試刪除RedirectMatch指令? – aquaherd
是的,我嘗試註釋掉「RedirectMatch ^(/ svn)$ $ 1 /」這一行。當我這樣做時,TortoiseSVN回購瀏覽器似乎收到「200 OK」,無論我是否使用尾部斜線。我假設它不期望收到一個httpd返回碼,所以它只是顯示它。當我在Firefox中打開它而沒有結尾的斜槓時,我得到一個404,但是以斜槓結尾,我得到了HTML「Collection of Repositories」頁面。感謝您的詢問。 – user980744