2012-04-11 7 views
2

私のApacheはHAproxy経由のswfファイルを取得する際のhttpd.confは「502不正なゲートウェイ」エラーが発生する2.4.1で、私は次の構文を含むことにより、奇妙な問題があります。Apache 2.4.1でHaproxyでmod_deflateを使用するにはどうすればいいですか?

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript 

私はこの設定線502を削除します悪いゲートウェイのエラーが消えます。

サーバーは、成功したリクエストに応じてこれらの応答ヘッダを返します。

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 

答えて

2

私は、Apache 2.4.2にアップデートすることで、これを固定(mod_deflateをワンセグ障害バグが2.4.1にあった)と追加:

Header append Vary User-Agent

AddOutputFilterByTypeの下にあります。