Neo's Blog

首頁 相本 討論 書籤

分類目錄
本站日誌 (51)
碎碎唸啦 (173)
網站架設 (84)
程式設計 (161)
軟體使用 (69)
電子商務 (126)
經營奇想 (48)
基金理財 (11)
聰明消費 (87)
電影心得 (47)
開放原碼 (16)
工作記錄 (2)
毛毛小記 (9)
就是不同 (2)




歷史資料
 




July 21, 2004
Subversion 出現 301 Moved Permanently 的解決方法

會出現這個訊息的原因,通常就是 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

 
由 Neo 發表於 July 21, 2004 10:21 AM 收進你的MyShare個人書籤  

Response.Status="301 Moved Permanently"

什么意思。。。


fuland 發表於 August 2, 2005 04:04 PM

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


Spencer 發表於 May 22, 2008 12:41 PM
發表迴響  
(*星號開頭為必填欄位)











(請輸入您看到的數字,看不到請按右鍵->顯示圖片)


記住我的資訊?







Copyright 2005 Neo's Blog All rights reserved.