Web Hosting Talk







View Full Version : ACK!!! mod_gzip PROBLEMS!!


Eagle
07-31-2001, 09:10 PM
Okay...
mod_gzip is great
but suddenly, my .htaccess stopped working

IE giving "Can not find server" and Netscape "Contains no data" EH?? :eek:

Then I turn OFF mod_gzip
and it works fine...

This is my config:

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_keep_workfiles No
mod_gzip_min_http 1001
mod_gzip_temp_dir /tmp/mod_gzip
mod_gzip_minimum_file_size 1002
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 1000000
mod_gzip_command_version mod_gzip_show_version


mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.shtml$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.cgi$
mod_gzip_item_include file \.pl$
mod_gzip_item_include file \.jpg$
mod_gzip_item_include file \.gif$
mod_gzip_item_include file \.swf$
mod_gzip_item_include handler ^perl-script$
mod_gzip_item_include mime text/.*
mod_gzip_item_include mime "application/x-httpd-php.*"
mod_gzip_item_include mime httpd/unix-directory

mod_gzip_item_exclude file "\.htaccess$"
mod_gzip_item_exclude file "\.htpasswd$"
mod_gzip_item_exclude file "\.css$"
mod_gzip_item_exclude file "\.js$"
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$
CustomLog /home/mod_gzip_log/mod_gzip_log common_with_mod_gzip_info2
</IfModule>


What's wrong?
How do I turn off compression for .htaccess?

Thanks

bert
07-31-2001, 09:49 PM
It looks like you have a syntax problem. Drop the "\" before the file type. Your httpd.conf file should look like this:

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 100000
mod_gzip_item_include file .htm$
mod_gzip_item_include file .html$
mod_gzip_item_include file .shtml$
mod_gzip_item_include file .shtm$
mod_gzip_item_include file .php$
mod_gzip_item_include file .pl$
mod_gzip_item_include file .cgi$
mod_gzip_item_include mime text/.*
mod_gzip_item_include mime ^application/x-httpd-php
mod_gzip_item_include mime httpd/unix-directory
mod_gzip_item_include handler ^perl-script$
mod_gzip_item_include handler ^server-status$
mod_gzip_item_include handler ^server-info$
mod_gzip_item_exclude file .css$
mod_gzip_item_exclude file .js$
mod_gzip_item_exclude mime ^image/.*
mod_gzip_dechunk yes
mod_gzip_temp_dir /tmp
mod_gzip_keep_workfiles No
mod_gzip_can_negotiate Yes
</IfModule>


Also, make sure you have an "AddModule" directive for mod_gzip down towards the end of the httpd.conf file like this:

AddModule mod_frontpage.c
AddModule mod_log_bytes.c
AddModule mod_dav.c
AddModule mod_php4.c
AddModule mod_bwlimited.c
AddModule mod_gzip.c <<<<<<<<<<<< LIKE THIS ONE HERE


Hope this helps :)

Eagle
07-31-2001, 09:51 PM
Well I did that :D
If I wouldnt have done that I wouldnt have the problem, simply because then mod_gzip wouldnt work...

However, i fixed the problem already :P
Thanks though