httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serge Knystautas <>
Subject [users@httpd] mod_deflate w/reverse proxy
Date Tue, 14 Jun 2005 15:53:32 GMT
I'm having trouble using mod_deflate to compress content that is going 
through my reverse proxy using apache 2.0.46.  All requests go to a 
default virtual host, and then I use RewriteConf/RewriteRule [P] to 
carve off certain hostnames to reverse proxy to another webserver.  We 
use this approach for testing, so normally everyone sees the regular set 
of files, but before deploying I can setup special hostnames to see a 
newer site version.

Configuration looks like this...

UseCanonicalName Off
AddOutputFilterByType DEFLATE text/html text/plain text/xml

<VirtualHost *>
   DocumentRoot /foobar

   ProxyRequests Off
   <Proxy *>
     Order deny,allow
     Allow from all

   RewriteEngine On
   RewriteCond %{HTTP_HOST} \.lokitech\.com [NC,OR]
   RewriteCond %{HTTP_HOST} ^lokitech\.com [NC]
   RewriteRule ^/(.*) http://localhost:8082/$1 [P]
   ProxyPreserveHost On

Let's say I'm hosting and on this 
server.  With this setup, a request for an HTML URL on will get compressed, but a request for an HTML URL 
on will not get compressed.

I've done extensive google searching and saw there was something about 
how mod_deflate and mod_proxy are not compatible, but it wasn't clear if 
this is outdated or if there is a workaround.

Beyond instantly telling me how to fix this, I'm mainly hoping for 
suggestions to diagnose why the filter would not get applied to the 
proxy requests.  Thanks in advance.

Serge Knystautas
Lokitech >> software . strategy . design >>
p. 301.656.5501

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message