Hi Colm,

In the apache httpd.conf make sure you load the gzip_module after the CF one.

# Example:
# LoadModule foo_module libexec/mod_foo.so
LoadModule coldfusion_module  libexec/mod_coldfusion.so
LoadModule gzip_module  libexec/mod_gzip.so

The use ifmodule for the mod_gzip settings:

<IfModule mod_gzip.c>
   mod_gzip_on                   yes
   mod_gzip_dechunk              yes
   mod_gzip_min_http             1001
   mod_gzip_temp_dir             /tmp/gzip
   mod_gzip_handle_methods       GET POST
   mod_gzip_minimum_file_size    4500
   mod_gzip_can_negotiate        Yes
   mod_gzip_update_static        No
   mod_gzip_item_exclude mime    ^image/
   mod_gzip_item_exclude file    \.jpg$
   mod_gzip_item_exclude file    \.gif$
   mod_gzip_item_include file    \.htm$
   mod_gzip_item_include mime    text/html*
   mod_gzip_item_include mime    ^text/plain$
   mod_gzip_item_include file    \.html$
   mod_gzip_item_include handler type-coldfusion
   mod_gzip_item_include file    \.cfm$
   mod_gzip_item_include mime    ^httpd/unix-directory$
   mod_gzip_keep_workfiles       No
</IfModule>

The above will use mod_gzip on anything but image files.

Then you can also add the following 2 lines to the LogFormat directive to see your 
compression ratios in access_log.

LogFormat "%h %l %u %t \"%r\" %>s %b mod_gzip: %{mod_gzip_compression_ratio}npct." 
common_with_mod_gzip_info1
LogFormat "%h %l %u %t \"%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

We have had no problems with form post/gets/uploads using CF5 and mod_gzip.

Adam.

> -----Original Message-----
> From: Colm Brazel [mailto:[EMAIL PROTECTED] 

> Hi,
> 
> Just installed mod_gzip module on Apache and the pages fly, 
> all that is except the .cfm pages. Anyone got mod_gzip 
> compression on apache to work with .cfm pages on CF 5.0, or 
> are there issues around this?
> 
> Colm

--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to