解決 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

<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>
  • tech/svnproxypass.txt
  • 上一次變更: 2012/03/20 14:27
  • jonathan