顯示頁面舊版反向連結Fold/unfold all回到頁頂 本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。 ====== 解決 SVN 經過 Apache ProxyPass 執行 commit 失敗的方法 ====== ===== 錯誤訊息 ===== 主要是在 Subversion(SVN) commit 時出現類似以下的錯誤訊息 <file> Commit failed (details follow): Server sent unexpected return value (502 Bad Gateway) in response to COPY request for '/repos/clouddb/!svn/bc/2067/xxx.ppt' </file> ===== 解決方案 ===== 解決方法就是將以下這行加入提供 ProxyPass 那台主機的 httpd.conf 或 subversion.conf 內 <code> RequestHeader edit Destination ^https http early </code> <file> : RequestHeader edit Destination ^https http early <Location /repos> DAV svn SVNParentPath /var/www/svn # Limit write permission to list of valid users. <LimitExcept GET PROPFIND OPTIONS REPORT> # Require SSL connection for password protection. # SSLRequireSSL AuthType Basic AuthName "Authorization Realm" AuthUserFile /path/to/passwdfile Require valid-user </LimitExcept> </Location> </file> ===== 參考資料 ===== * http://weblogs.asp.net/mnissen/archive/2008/12/28/solution-for-subversion-502-bad-gateway-problem-when-using-forefront-as-reverse-proxy.aspx {{tag>SVN Subversion apache ProxyPass 密技}} tech/svnproxypass.txt 上一次變更: 2012/03/20 14:27由 jonathan