Antwort: [Mod_gzip] Apache 1.3.23 + mod_gzip 1.3.19.1a + Cold FusionMX

Zabel, Ian mod_gzip@lists.over.net
Fri, 4 Oct 2002 14:20:52 -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_01C26BD2.C6012264
Content-Type: text/plain;
	charset="iso-8859-1"

Michael,

I have since upgraded to the latest release on the SourceForge site, and it
still behaves the same way.


> how might the handler name of the product you are using actually be?

I am not sure, but I assume it is actually "jrun-handler" since there is an
AddHandler for this in the mod_jrun.c config section (included below).


>Oops. mod_gzip isn't even invoked here.
>In which order are you loading your modules?

Here is a more complete look at my httpd.conf:

httpd.conf:
...snip...
LoadModule gzip_module         modules/mod_gzip.so

...snip...
ClearModuleList

...snip...
AddModule mod_gzip.c

...snip...
<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>

...snip...

# ColdFusionMX Settings
LoadModule jrun_module /usr/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun.so
<IfModule mod_jrun.c>
    JRunConfig Verbose false
    JRunConfig Apialloc false
    JRunConfig Ssl false
    JRunConfig Ignoresuffixmap true
    JRunConfig Serverstore
/usr/coldfusionmx/runtime/lib/wsconfig/1/jrunserver.store
    JRunConfig Bootstrap 127.0.0.1:51010
    #JRunConfig Errorurl <optionally redirect to this URL on errors>
    AddHandler jrun-handler .cfm .cfc .cfml .jws
</IfModule>



>Which MIME type is your request producing?
> I am missing this field in your log file format.

As far as I can know, it's text/html. After looking through the Apache
LogFormat documentation and searching Google a bit, I am still not quite
sure how to output MIME type in the log. What parameters would I pass to the
LogFormat directive to enable this?

Ian.

------_=_NextPart_001_01C26BD2.C6012264
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>RE: Antwort: [Mod_gzip] Apache 1.3.23 + mod_gzip 1.3.19.1a + =
ColdFusionMX</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Michael,</FONT>
</P>

<P><FONT SIZE=3D2>I have since upgraded to the latest release on the =
SourceForge site, and it still behaves the same way.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>&gt; how might the handler name of the product you =
are using actually be?</FONT>
</P>

<P><FONT SIZE=3D2>I am not sure, but I assume it is actually =
&quot;jrun-handler&quot; since there is an AddHandler for this in the =
mod_jrun.c config section (included below).</FONT></P>
<BR>

<P><FONT SIZE=3D2>&gt;Oops. mod_gzip isn't even invoked here.</FONT>
<BR><FONT SIZE=3D2>&gt;In which order are you loading your =
modules?</FONT>
</P>

<P><FONT SIZE=3D2>Here is a more complete look at my httpd.conf:</FONT>
</P>

<P><FONT SIZE=3D2>httpd.conf:</FONT>
<BR><FONT SIZE=3D2>...snip...</FONT>
<BR><FONT SIZE=3D2>LoadModule =
gzip_module&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
modules/mod_gzip.so</FONT>
</P>

<P><FONT SIZE=3D2>...snip...</FONT>
<BR><FONT SIZE=3D2>ClearModuleList</FONT>
</P>

<P><FONT SIZE=3D2>...snip...</FONT>
<BR><FONT SIZE=3D2>AddModule mod_gzip.c</FONT>
</P>

<P><FONT SIZE=3D2>...snip...</FONT>
<BR><FONT SIZE=3D2>&lt;IfModule mod_gzip.c&gt;</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&nbsp; 300</FONT>
<BR><FONT SIZE=3D2>mod_gzip_maximum_file_size&nbsp; -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 &quot;\.css$&quot;</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_exclude file &quot;\.js$&quot;</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_exclude file &quot;\.wml$&quot;</FONT>
<BR><FONT SIZE=3D2>mod_gzip_item_exclude mime ^image/.*</FONT>
</P>

<P><FONT SIZE=3D2>LogFormat &quot;%h %l %u %t \&quot;%V %r\&quot; =
%&gt;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.&quot; =
common_with_mod_gzip_info2</FONT></P>

<P><FONT SIZE=3D2>CustomLog /var/log/httpd/mod_gzip&nbsp; =
common_with_mod_gzip_info2</FONT>
<BR><FONT SIZE=3D2>&lt;/IfModule&gt;</FONT>
</P>

<P><FONT SIZE=3D2>...snip...</FONT>
</P>

<P><FONT SIZE=3D2># ColdFusionMX Settings</FONT>
<BR><FONT SIZE=3D2>LoadModule jrun_module =
/usr/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun.so</FONT>
<BR><FONT SIZE=3D2>&lt;IfModule mod_jrun.c&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; JRunConfig Verbose false</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; JRunConfig Apialloc false</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; JRunConfig Ssl false</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; JRunConfig Ignoresuffixmap =
true</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; JRunConfig Serverstore =
/usr/coldfusionmx/runtime/lib/wsconfig/1/jrunserver.store</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; JRunConfig Bootstrap =
127.0.0.1:51010</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; #JRunConfig Errorurl =
&lt;optionally redirect to this URL on errors&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; AddHandler jrun-handler .cfm .cfc =
.cfml .jws</FONT>
<BR><FONT SIZE=3D2>&lt;/IfModule&gt;</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>&gt;Which MIME type is your request producing?</FONT>
<BR><FONT SIZE=3D2>&gt; I am missing this field in your log file =
format.</FONT>
</P>

<P><FONT SIZE=3D2>As far as I can know, it's text/html. After looking =
through the Apache LogFormat documentation and searching Google a bit, =
I am still not quite sure how to output MIME type in the log. What =
parameters would I pass to the LogFormat directive to enable =
this?</FONT></P>

<P><FONT SIZE=3D2>Ian.</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C26BD2.C6012264--