Apache 2.4.1 httpd.confに次の構文を含めると、HAproxy経由でswfファイルを取得するときに「502BadGateway」エラーが発生するという奇妙な問題があります。
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript
この設定行を削除すると、502BadGatewayエラーが消えます。
サーバーは、リクエストが成功すると、次の応答ヘッダーを返します。
Date: Wed, 11 Apr 2012 20:24:12 GMT
Server: Apache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
200 OK