HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   HOWTO-Related Questions (
-   -   mod_gzip (

alex 21st April 2005 12:23

I've just read the mod_gzip tutorial ( and installed mod_gzip on my server. My Apache is running fine, but how do I see if mod_gzip is working and how much it compresses the documents it delivers? In the Apache access log I don't see anything related to mod_gzip... :confused:


falko 21st April 2005 12:57

Try to add mod_gzip logging to your Apache:


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}n pct." common_with_mod_gzip_info2
CustomLog                    /path/to/mod_gzip.log common_with_mod_gzip_info2

The log file tells you about the success, status codes (you can look up their meanings here:, compression ratios, etc.

alex 21st April 2005 18:08

I can't find mod_gzip.log (or do I have to create the file manually somewhere and use that file in the CustomLog line?). :(

falko 22nd April 2005 12:38

Well, you have to create it manually... :D

alex 22nd April 2005 13:36

Ok... :o :rolleyes:

All times are GMT +2. The time now is 04:37.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.