Antwort: [Mod_gzip] mod_ssl + mod_gzip (mod_gzip not compressing
with mod_ssl)
mod_gzip@lists.over.net
mod_gzip@lists.over.net
Tue, 15 Jul 2003 11:49:28 +0200
Hi Peter,
> If I run just mod_gzip, everything is fine. If I run just
> mod_ssl everything is fine as well. But if I run mod_ssl
> and mod_gzip, then nothing gets compressed (but I do get
> the content on the webpage). I am not sure what the problem is.
your SSL module seems to internally 'rewrite' the HTTP re-
quests (so that other modules should not interfere with them).
Unfortunately, this tends to break your 'mod_item_include'
rules, and mod_gzip doesn't seem to accept the response
as to be compressed any more.
You would see that in the mod_gzip status code if you include
that to your log format.
> ClearModuleList
> AddModule mod_mmap_static.c
First you load all modules, then you clear the list again,
and then you add the modules? And do you actually need
all those modules? Think about removing 50% of these ...
> LogFormat "%h %l %u %t \"%r\" %>s %b mod_gzip: %{mod_gzip_result}n
Which values do you get for mod_gzip_result in your logs?
<IfModule mod_gzip.c>
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.jsp$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.doc$
mod_gzip_item_include file \.js$
mod_gzip_item_include file \.do$
mod_gzip_item_include file "\.css$"
You include your request on a "file" base only -
> mod_gzip_item_include handler jakarta-servlet
> mod_gzip_item_include handler jakarta-servlet$
> mod_gzip_item_include handler ^^jakarta-servlet
> mod_gzip_item_include handler ^^jakarta-servlet$
> mod_gzip_item_include handler ^^jakarta-servlet$
Of these five lines, the first one is a superset of the
four others (and no. 4 and 5 seem even to be duplicates).
You don't need all five; you only need one of them.
(Do you understand the regular expressions you use here?)
> mod_gzip_item_include mime text/.*
> mod_gzip_item_include mime ^^image/.*$
> mod_gzip_item_include mime ^^application/.*$
Looks reasonable to be - unless mod_proxy would not set any
MIME type for its output. I remember to have experienced a
problem of this type some time ago - you might want to add
the "Content-type" HTTP response header to your mod_gzip log.
Regards, Michael