Web Hosting Talk







View Full Version : Help to configure httpd.conf to create the mod_gzip Logfile


jaime
08-22-2001, 05:16 PM
Hello,

I have installed mod_gzip in my raq4 and it works ok.

I just can't configure httpd.conf to generate the log for mod_gzip.

I add in httpd.conf:

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/httpd/mod_gzip_log common_with_mod_gzip_info2

But I always get the same error when I try to restart Apache:

Syntax error on line 149 of /etc/httpd/conf/httpd.conf:
Invalid command 'Out:%{mod_gzip_output_size}n:%{mod_gzip_compression_ratio}npct."', perhaps mis-spelled or defined by a module not included in the server configuration

What am I doing wrong?

where do I have exactly to place the "Logformat ...etc" in httpd.conf?

anybody had this problem?

Thanks.