mod_gzip and virtual hosts with cgi

Hi,

I have installed mod_gzip 1.3.26.1a on apache 1.3.

I have set gzip to compress everything in the entire server scope, my problem is that compression is only working for some virtual hosts. It appears that vhosts that do not use cgi (sriptalias) or mod_perl do get processed, whilst vhosts without cgi/mod_perl do get compressed.

There is nothing in the mod_gzip log for hosts with cgi/mod_perl, sites without cgi are fine:
xx.xx.xx.xx - - [14/Feb/2010:15:50:48 +0000] “beta.site.com GET / HTTP/1.1” 200 1776 mod_gzip: OK In:4452 -< Out:1391 = 69 pct.

There are no log entries for cgi-enabled hosts…

Has anyone encountered/have a solution to this please?

Here is my mod_gzip config


<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_minimum_file_size    500
mod_gzip_maximum_file_size    500000
mod_gzip_maximum_inmem_size   60000



mod_gzip_temp_dir             /tmp
mod_gzip_keep_workfiles       No
mod_gzip_min_http             1001
mod_gzip_handle_methods        GET POST

# phase 1
mod_gzip_item_include         file       \\.html$
mod_gzip_item_include         file       \\.css$
mod_gzip_item_include         file       \\.js$

# phase 2
mod_gzip_item_include         mime       ^text/
mod_gzip_item_include         mime       ^text/plain$
mod_gzip_item_include         mime       ^httpd/unix-directory$
mod_gzip_item_include         handler    ^cgi-script$
mod_gzip_item_include         handler    ^perl-script$

mod_gzip_item_exclude         mime       ^image/

mod_gzip_dechunk              Yes

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                     logs/mod_gzip.log common_with_mod_gzip_info2

mod_gzip_add_header_count     Yes
mod_gzip_send_vary Yes
</IfModule>


anyone? surely someone has encountered this before?