[Mod_gzip] Apache 1.3.23 + mod_gzip 1.3.19.1a + ColdFusionMX
Zabel, Ian
mod_gzip@lists.over.net
Thu, 3 Oct 2002 15:21:49 -0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C26B12.1F2A6290
Content-Type: text/plain;
charset="iso-8859-1"
I am using ColdFusion MX on Redhat Linux 7.3, with the default install of
Apache. mod_gzip is working great for .html and other file types, but I am
having trouble getting mod_gzip to work for _all_ .cfm files served through
Apache.
CFM pages are comprressed only if they're index pages, but specificaly
GETting a cfm file doesn't compress. (i.e. go to http://server.com/ and it
is compressed, go to http://server.com/index.cfm and it is not compressed)
ColdFusion MX is based on JRun server. I have tried searching for messages
concerning both ColdFusion and JRun and have only come up with trying some
different handler types. You'll notice I have 3 different handlers included
for mod_gzip, trying to catch cfm files. It's not working.
Here is my config:
<IfModule mod_gzip.c>
mod_gzip_on yes
mod_gzip_dechunk yes
mod_gzip_keep_workfiles No
mod_gzip_temp_dir /tmp
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size -1
mod_gzip_maximum_inmem_size 1000000
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.jsp$
mod_gzip_item_include file \.cfm$
mod_gzip_item_include file \.cfml$
mod_gzip_item_include uri .*cfm.*
mod_gzip_item_include mime text/.*
mod_gzip_item_include mime httpd/unix-directory
mod_gzip_item_include handler jrun-handler
mod_gzip_item_include handler handler-jrun
mod_gzip_item_include handler type-coldfusion
mod_gzip_item_exclude file "\.css$"
mod_gzip_item_exclude file "\.js$"
mod_gzip_item_exclude file "\.wml$"
mod_gzip_item_exclude mime ^image/.*
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 common_with_mod_gzip_info2
</IfModule>
And from my log:
xx.xx.xx.xx - - [03/Oct/2002:15:05:13 -0400] "server.com GET /test.html
HTTP/1.1" 200 1783 mod_gzip: OK In:9003 Out:1783:81pct.
xx.xx.xx.xx - - [03/Oct/2002:15:07:27 -0400] "server.com GET /style.css
HTTP/1.1" 304 - mod_gzip: DECLINED:EXCLUDED In:0 Out:0:0pct.
xx.xx.xx.xx - - [03/Oct/2002:15:07:26 -0400] "server.com GET / HTTP/1.1" 200
8273 mod_gzip: DECHUNK:OK In:35461 Out:8273:77pct.
xx.xx.xx.xx - - [03/Oct/2002:15:09:40 -0400] "server.com GET /index.cfm
HTTP/1.1" 200 35559 mod_gzip: - In:- Out:-:-pct.
Note: index.cfm is my default DirectoryIndex.
So, you can see that mod_gzip is working, it compresses test.html, and
/index.cfm when references as /. But it won't compress /index.cfm, or any
other .cfm for that matter when I access them directly.
Any help on this matter?
Ian.
------_=_NextPart_001_01C26B12.1F2A6290
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>Apache 1.3.23 + mod_gzip 1.3.19.1a + ColdFusionMX </TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>I am using ColdFusion MX on Redhat Linux 7.3, with =
the default install of Apache. mod_gzip is working great for .html and =
other file types, but I am having trouble getting mod_gzip to work for =
_all_ .cfm files served through Apache.</FONT></P>
<P><FONT SIZE=3D2>CFM pages are comprressed only if they're index =
pages, but specificaly GETting a cfm file doesn't compress. (i.e. go to =
<A HREF=3D"http://server.com/" TARGET=3D"_blank">http://server.com/</A> =
and it is compressed, go to <A HREF=3D"http://server.com/index.cfm" =
TARGET=3D"_blank">http://server.com/index.cfm</A> and it is not =
compressed)</FONT></P>
<P><FONT SIZE=3D2>ColdFusion MX is based on JRun server. I have tried =
searching for messages concerning both ColdFusion and JRun and have =
only come up with trying some different handler types. You'll notice I =
have 3 different handlers included for mod_gzip, trying to catch cfm =
files. It's not working.</FONT></P>
<P><FONT SIZE=3D2>Here is my config:</FONT>
<BR><FONT SIZE=3D2><IfModule mod_gzip.c></FONT>
<BR><FONT SIZE=3D2>mod_gzip_on yes</FONT>
<BR><FONT SIZE=3D2>mod_gzip_dechunk yes</FONT>
<BR><FONT SIZE=3D2>mod_gzip_keep_workfiles No</FONT>
<BR><FONT SIZE=3D2>mod_gzip_temp_dir /tmp</FONT>
<BR><FONT SIZE=3D2>mod_gzip_minimum_file_size 300</FONT>
<BR><FONT SIZE=3D2>mod_gzip_maximum_file_size -1</FONT>
<BR><FONT SIZE=3D2>mod_gzip_maximum_inmem_size 1000000</FONT>
</P>
<P><FONT SIZE=3D2>mod_gzip_item_include file \.htm$</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_include file \.html$</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_include file \.jsp$</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_include file \.cfm$</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_include file \.cfml$</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_include uri .*cfm.*</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_include mime text/.*</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_include mime =
httpd/unix-directory</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_include handler jrun-handler</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_include handler handler-jrun</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_include handler type-coldfusion</FONT>
</P>
<P><FONT SIZE=3D2>mod_gzip_item_exclude file "\.css$"</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_exclude file "\.js$"</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_exclude file "\.wml$"</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_exclude mime ^image/.*</FONT>
</P>
<P><FONT SIZE=3D2>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</FONT></P>
<P><FONT SIZE=3D2>CustomLog /var/log/httpd/mod_gzip =
common_with_mod_gzip_info2</FONT>
<BR><FONT SIZE=3D2></IfModule></FONT>
</P>
<BR>
<P><FONT SIZE=3D2>And from my log:</FONT>
<BR><FONT SIZE=3D2>xx.xx.xx.xx - - [03/Oct/2002:15:05:13 -0400] =
"server.com GET /test.html HTTP/1.1" 200 1783 mod_gzip: OK =
In:9003 Out:1783:81pct.</FONT></P>
<P><FONT SIZE=3D2>xx.xx.xx.xx - - [03/Oct/2002:15:07:27 -0400] =
"server.com GET /style.css HTTP/1.1" 304 - mod_gzip: =
DECLINED:EXCLUDED In:0 Out:0:0pct.</FONT></P>
<P><FONT SIZE=3D2>xx.xx.xx.xx - - [03/Oct/2002:15:07:26 -0400] =
"server.com GET / HTTP/1.1" 200 8273 mod_gzip: DECHUNK:OK =
In:35461 Out:8273:77pct.</FONT></P>
<P><FONT SIZE=3D2>xx.xx.xx.xx - - [03/Oct/2002:15:09:40 -0400] =
"server.com GET /index.cfm HTTP/1.1" 200 35559 mod_gzip: - =
In:- Out:-:-pct.</FONT></P>
<BR>
<P><FONT SIZE=3D2>Note: index.cfm is my default DirectoryIndex.</FONT>
</P>
<P><FONT SIZE=3D2>So, you can see that mod_gzip is working, it =
compresses test.html, and /index.cfm when references as /. But it won't =
compress /index.cfm, or any other .cfm for that matter when I access =
them directly.</FONT></P>
<P><FONT SIZE=3D2>Any help on this matter?</FONT>
</P>
<P><FONT SIZE=3D2>Ian.</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C26B12.1F2A6290--