Neo 's Blog

Neo 's Blog

會出現這個訊息的原因,通常就是 Subversion 的 Repository 目錄放在 apache 設定的文件根目錄裡面。


先打開 apache 的 httpd.conf 看看 DocumentRoot 設在哪裡:

DocumentRoot "/var/www/html"

再看看 SVNPath 或 SVNParentPath 設的目錄是不是一樣?

<Location /svn>
DAV svn
SVNParentPath /var/www/html/svn
</Location>

如果一樣,就必需把 svn 目錄搬到其它地方,如 /usr/local/svn
然後再把 httpd.conf 改為:

<Location /svn>
DAV svn
SVNParentPath /usr/local/svn
</Location>

再重新啟動 apache ,結果就會正常了。

Subversion 官方的 301 Moved Permanently 說明:
http://subversion.tigris.org/project_faq.html#301-error

2 Responses so far.

  1. fuland 說道:

    Response.Status="301 Moved Permanently"

    什么意思。。。

  2. Spencer 說道:

    非常感謝你所提供的教學,解決困擾我好久的問題


搜尋

分類

歷史文章

贊助