reverse proxy, disable compression to/from backend, DEFLATE to client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello list,

My Apache 2.2.3 does reverse proxy to an internal backend (application)server which does Content-Encoding:gzip (=compression) on most of the content he delivers, by default. The Proxy* directives are inside a virtual host.
But I'd like the proxy to do all the compression work,
a) because mod_security cannot handle encoded content(in the response from backend),
b) it would be redundant to compress the already compressed content.

So to talk to the backend uncompressed, I strip the Accept-Encoding with "Request-Header unset Accept-Encoding" from the client request. Now the backend sends its responses without compression. But they go to the client uncompressed too, of course.

What would I have to do to let the proxy compress the response to the client (again)? Simply setting the SetOutputFilter DEFLATE is not enough. Also I would have to deal with clients not supporting compression on the proxy myself, instead of letting the backend do the work.

Best Regards,
matthias

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux