How do I use mod_deflate in Apache 2.4.1 with Haproxy?

I have a strange issue whereby including the following syntax in my Apache 2.4.1 httpd.conf causes "502 Bad Gateway" errors when retrieving swf files via HAproxy:

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

When I remove this config line the 502 Bad Gateway error goes away.

The server returns these response headers on a successful request:

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


I fixed this by updating to Apache 2.4.2 (there was a mod_deflate seg fault bug in 2.4.1) and adding:

Header append Vary User-Agent

Beneath the AddOutputFilterByType line.

Need Your Help

How to create a custom field when using WCF RIA?

silverlight silverlight-3.0

I have a table with "first name" and "last name". When binding to a datagrid I need to have a column named "name", which is "first name" + SPACE + "last name".

CKSubscription not working

ios macos cloudkit cksubscription ckrecord

I am creating my two CKSubscriptions in my App Delegate's didFinishLaunchingWithOptions method as such.