I have compiled Apache 1.3.29 on SUN/Solaris with mod_gzip 1.3.26.1a. We're using PHP 4.2.3 and ColdFusion 5. mod_gzip appears last in the list in httpd.conf. At most times, it works fine, mod_gzip would return gzipped HTML files. Sometimes all I get is a blank page, though. When I click Reload, the page would load ok. I've searched the web and have seen a lot of postings of people that experienced similar problems, but I have not found any solution. Is this a bug in mod_gzip that has not been fixed yet?

Below is my current configuration.

Peter

--

<IfModule mod_gzip.c>
        mod_gzip_on                             Yes
        mod_gzip_can_negotiate                  Yes
        mod_gzip_static_suffix                  .gz

        AddEncoding gzip .gz

        mod_gzip_update_static                  No
        mod_gzip_command_version                '/mod_gzip_status'
        mod_gzip_temp_dir                       "/tmp"
        mod_gzip_keep_workfiles                 No
        mod_gzip_minimum_file_size              500
        mod_gzip_maximum_file_size              1050000
# I got TRANSMIT_ERROR:ISMEM:32 errors, so I disabled in-memory
compression
#       mod_gzip_maximum_inmem_size             60000
        mod_gzip_maximum_inmem_size             0
        mod_gzip_min_http                       1000
        mod_gzip_handle_methods                 GET POST
        mod_gzip_item_exclude reqheader "User-agent: Mozilla/4.0[678]"

        mod_gzip_item_include file              "\.html$"
        mod_gzip_item_include file              "\.shtml$"
        mod_gzip_item_include file              "\.htm$"
        mod_gzip_item_include file              "\.shtm$"
        mod_gzip_item_include file              "\.php3$"
        mod_gzip_item_include file              "\.php$"
        mod_gzip_item_include file              "\.phtml$"
        mod_gzip_item_include file              "\.cfm$"
        mod_gzip_item_include file              "\.txt$"
        mod_gzip_item_include file              "\.css$"

        mod_gzip_item_exclude file              "\.js$"
        mod_gzip_item_exclude file              "\.pl$"
        mod_gzip_item_exclude file              "\.xls$"
        mod_gzip_item_exclude file              "\.jpg$"
        mod_gzip_item_exclude file              "\.gif$"
        mod_gzip_item_exclude file              "\.png$"
        mod_gzip_item_exclude file              "\.pdf$"

# image.cfm is a special page that outputs an image. Never compress
# the output of this script!
        mod_gzip_item_exclude file              "image.cfm"

        mod_gzip_item_include handler           "^cgi-script$"

# Sometimes all I get is a blank page. This may be because the browser
# gets a wrong mime type and therefore stops waiting for the request.
# Maybe I can overcome this problem by commenting out the mime
inclusions?
#       mod_gzip_item_include mime            
"application/x-httpd-php"
#       mod_gzip_item_include mime              text/*
#       mod_gzip_item_include mime            
"^httpd/unix-directory$"
#       mod_gzip_item_exclude mime              "^image/"

        mod_gzip_dechunk                        Yes
        mod_gzip_add_header_count               Yes

        LogFormat "%h %l %u %t \&quot;%V %r\&quot; %<s %b mod_gzip:
%{mod_gzip_result}n In:%{mod_gzip_input_size}n -<
Out:%{mod_gzip_output_size}n = %{mod_gzip_compress
ion_ratio}n pct." common_with_mod_gzip_info2
        CustomLog logs/mod_gzip.log common_with_mod_gzip_info2

        mod_gzip_send_vary                      Yes
</IfModule>