Mobile app version of vmapp.org
Login or Join
Merenda212

: Problem using mod_deflate with ProxyPass Using Apache 2.0 (2.0.53) on a particular legacy system, enabling mod_deflate causes directly-served content to be gzip-encoded just fine. However, and this

@Merenda212

Posted in: #Apache #Gzip #Proxy

Using Apache 2.0 (2.0.53) on a particular legacy system, enabling mod_deflate causes directly-served content to be gzip-encoded just fine. However, and this is my problem, content proxied from another server using ProxyPass is not getting gzip-encoded. Wireshark shows me there is no encoding header in the response and the body is in plain text.

I have another similar system, also running Apache 2.0 (2.0.52), where the proxied content IS being gzipped, and I can't find any significant difference between the configuration of the two systems.

Details:
mod_deflate is being enabled using a file /etc/httpd/conf.d/deflate.conf containing:

<ifModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript application/json
</ifModule>


The proxying is being done within the <VirtualHost> section using these lines:

ProxyPass /mtserver localhost:8000 ProxyPassReverse /mtserver localhost:8000

Can anyone point me at a possible reason for one system not compressing the proxied content?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Merenda212

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme