View Full Version : mod_gzip

21st April 2005, 12:23
I've just read the mod_gzip tutorial (http://www.howtoforge.com/linux_apache_mod_gzip) 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:


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: http://www.howtoforge.com/linux_apache_mod_gzip_7), compression ratios, etc.

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?). :(

22nd April 2005, 12:38
Well, you have to create it manually... :D

22nd April 2005, 13:36
Ok... :o :rolleyes: