httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil A. Hillard" <>
Subject [users@httpd] Inflate with mod_deflate problem...
Date Thu, 27 Jul 2006 13:39:05 GMT

	I'm currently using Apache 2.0 as an accelerator and performing a
certain amount of HTTP / HTML rewriting successfully.  I'm currently
building a replacement server and am attempting to move to Apache 2.2
but appear to be having some problems using filters.

I need to insert proxy-html to perform the HTML rewriting and therefore
need to ensure that any content from the backend server is inflated
before proxy-html handles it.

My config so far is:

--- Config extract ---
 DocumentRoot /var/www/test/html

 CustomLog logs/test/access_log combined
 ErrorLog logs/test/error_log

 FilterProvider  decompress INFLATE resp=Content-Type $text/html
 FilterProvider  fixup proxy-html resp=Content-Type $text/html
 FilterProvider  recompress DEFLATE resp=Content-Type $text/html

 RewriteEngine on

 <Location />
  FilterChain =decompress fixup recompress

 RewriteRule      ^/(.*)$$1 [P,L]
--- Config extract ---

My client then only receives the following:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>

To eliminate proxy-html I tried:

FilterChain =decompress recompress

and had the exact same problem.  Even with:

FilterChain =decompress

it's the same.  Indicating that mod_deflate is having problems inflating
the content.

If I add:

RequestHeader unset Accept-Encoding then everything is fine.

Does anyone have any suggestions to resolve this?

Many thanks in advance,


Neil Hillard          
Westland Helicopters Ltd.

Disclaimer: This message does not necessarily reflect the
            views of Westland Helicopters Ltd.

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