====== 解決 SVN 經過 Apache ProxyPass 執行 commit 失敗的方法 ====== ===== 錯誤訊息 ===== 主要是在 Subversion(SVN) commit 時出現類似以下的錯誤訊息 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' ===== 解決方案 ===== 解決方法就是將以下這行加入提供 ProxyPass 那台主機的 httpd.conf 或 subversion.conf 內 RequestHeader edit Destination ^https http early : RequestHeader edit Destination ^https http early DAV svn SVNParentPath /var/www/svn # Limit write permission to list of valid users. # Require SSL connection for password protection. # SSLRequireSSL AuthType Basic AuthName "Authorization Realm" AuthUserFile /path/to/passwdfile Require valid-user ===== 參考資料 ===== * 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 密技}}