Antwort: [Mod_gzip] Problem with mod_gzip

Dariusz Pietrzak mod_gzip@lists.over.net
Thu, 3 Apr 2003 21:37:54 +0200


> Which other modules might have stolen away the
> handling of this request from mod_gzip?
 Hmm, strange thing.. when I remove mod_mime it starts compressing
( but I get page source instead of page )..
This is under apache with mod_perl compiled in.. and also with modular
perl.

> I don't understand what you refer to.
> Please post the exact configuration you are using.
Here's the section:


<IfModule mod_gzip.c>
mod_gzip_on yes
mod_gzip_dechunk yes
mod_gzip_keep_workfiles Yes
mod_gzip_temp_dir /tmp/
mod_gzip_minimum_file_size  202
#mod_gzip_minimum_file_size  1002
mod_gzip_maximum_file_size  1000000
#mod_gzip_maximum_file_size  0
mod_gzip_maximum_inmem_size 1000000

mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include mime text/.*
mod_gzip_item_include file \.php$
mod_gzip_item_include mime "jserv-servlet"
mod_gzip_item_include handler "jserv-servlet"
mod_gzip_item_include mime "application/x-httpd-php.*"
mod_gzip_item_include mime httpd/unix-directory
mod_gzip_item_include handler "jakarta-servlet"
mod_gzip_item_include mime "jakarta-servlet"

mod_gzip_item_include file \.js$
mod_gzip_item_include file \.css$

#mod_gzip_item_exclude file "\.wml$"
LogFormat "%h %l %u %t \"%V %r\" %>s %b mod_gzip: %{mod_gzip_result}n
In:%{mod_gzip_input_size}n
Out:%{mod_gzip_output_size}n:%{mod_gzip_compression_ratio}npct."
common_with_mod_gzip_info2
CustomLog /var/log/apache-perl/mod_gzip_log  common_with_mod_gzip_info2
</IfModule>


When I put it somewhere in httpd.conf, it doesen't work.
But when I put it inside <Virtual > </Virtual> section, it does.
But I'd prefer to set mod_gzip_on for all the pages I serve.

> > And it does not seem to be compressing anything.
> How do you come to this conclusion?
> Please post facts and not your interpretations.
 Well.. 1) mod_gzip_log says so
        2) logs from sniffit show uncompressed pages.
	3) although keep_workfiles is set to Yes it leaves no trash
	on my /tmp dir.

> For an example: In your log file excerpt you omitted
> the URL you requested, which might have shown any
 I omited it because it had no meaning ie - it was .html file.
If it was something else, I would have provided this information.

> you load onto a higher prioritized module stack position
> than mod_gzip and thus disable mod_gzip implicitly.
Uh uh, how do you prioritize your modules?