You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Daniel Stutzbach <da...@gmail.com> on 2009/10/21 23:13:06 UTC

[users@httpd] mod_filter with mod_include problem

I am trying to use mod_filter to setup server-side includes as well as
compression.  However, I'm observing rather odd behavior.  Apache sends the
"Content-Encoding: gzip" header, but sends the data uncompressed (causing
FireFox to display "Content Encoding Error").  The compression works fine
for pages that don't end in .shtml.  Below are the relevant bits of my
configuration files.  I'm ussing Apache 2.2.9.  Can anyone offer insights or
suggestions?  Any help would be greatly appreciated.

AddHandler server-parsed .shtml
FilterDeclare ssi
FilterProvider ssi INCLUDES handler server-parsed
FilterProtocol ssi INCLUDES change=yes
FilterChain @ssi

FilterDeclare deflate
FilterProvider deflate DEFLATE resp=Content-Type
/text.*|application.(x-)?javascript/
FilterProtocol deflate DEFLATE change=yes;bytesranges=no
FilterChain +deflate

--
Daniel Stutzbach, Ph.D.
http://www.barsoom.org/
 <http://www.barsoom.org/feed> <http://agthorr.livejournal.com/>
<http://www.facebook.com/daniel.stutzbach>
<http://www.linkedin.com/in/agthorr>
<http://www.netflix.com/BeMyFriend/PpZ2BnXBYLDGNcE3EdzH>
<http://twitter.com/DanielStutzbach>

Re: [users@httpd] mod_filter with mod_include problem

Posted by Daniel Stutzbach <da...@gmail.com>.
On Wed, Oct 21, 2009 at 5:37 PM, Nick Kew <ni...@webthing.com> wrote:

> Daniel Stutzbach wrote:
>
>> I am trying to use mod_filter to setup server-side includes as well as
>> compression.
>>
>
> Have you checked the exact output, and whether this could be
> in the family of
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=17629
> https://issues.apache.org/bugzilla/show_bug.cgi?id=43939
>

I checked the exact output using a packet sniffer.  The content is the
correct content, but uncompressed, even though apache sends the
"Content-Encoding: gzip" header.

Bug 17629 looks like it may well be related.  Unfortunately, that bug has
been open since 2003 (!) and none of the comments suggest a workaround as
far as I can see. :-(

--
Daniel Stutzbach, Ph.D.
http://www.barsoom.org/
 <http://www.barsoom.org/feed> <http://agthorr.livejournal.com/>
<http://www.facebook.com/daniel.stutzbach>
<http://www.linkedin.com/in/agthorr>
<http://www.netflix.com/BeMyFriend/PpZ2BnXBYLDGNcE3EdzH>
<http://twitter.com/DanielStutzbach>

Re: [users@httpd] mod_filter with mod_include problem

Posted by Nick Kew <ni...@webthing.com>.
Daniel Stutzbach wrote:
> I am trying to use mod_filter to setup server-side includes as well as 
> compression.

Have you checked the exact output, and whether this could be
in the family of

https://issues.apache.org/bugzilla/show_bug.cgi?id=17629
https://issues.apache.org/bugzilla/show_bug.cgi?id=43939

-- 
Nick Kew

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org