[Mod_gzip] Help ! SEND_AS_IS:HAS_CE error log message fom PHP file compression

Jack Wang mod_gzip@lists.over.net
Fri, 2 May 2003 13:44:43 +0800


This is a multi-part message in MIME format.

------=_NextPart_000_0050_01C310B0.FCA66E40
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

Hi,

Now, mod_gzip works for .html and .txt extension files. But, mod_gzip =
log displays SEND_AS_IS:HAS_CE error message for .php file.

Here is a section of error log for .php file.

GET /liwen/php/mail.php HTTP/1.1" 200 818 mod_gzip: SEND_AS_IS:HAS_CE =
In:0 -< Out:0 =3D 0 pct.

My mod_gzip configuration is as follows,

<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
mod_gzip_keep_workfiles       No
mod_gzip_minimum_file_size    500
mod_gzip_maximum_file_size    1200000
mod_gzip_maximum_inmem_size   60000
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       \.htm$
mod_gzip_item_include         file       \.php$
mod_gzip_item_include         file       \.php3$
mod_gzip_item_include         file       \.txt$
mod_gzip_item_include         file       \.pdf$
mod_gzip_item_include         file       [^.]*$
mod_gzip_item_exclude         file       \.js$
mod_gzip_item_include         file       \.css$
mod_gzip_item_include         file       \.pl$
mod_gzip_item_include         handler    ^cgi-script$
mod_gzip_item_include         handler    ^perl-script$
mod_gzip_item_include         mime       ^text/html$
mod_gzip_item_include         mime       ^text/plain$
mod_gzip_item_include         mime       ^application/pdf$
mod_gzip_item_include         mime       ^httpd/unix-directory$
mod_gzip_item_include         mime       ^application/x-httpd-php$
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 =3D =
%{mod_gzi
p_compression_ratio}n pct." common_with_mod_gzip_info2
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" =
mod_gzi
p:%{mod_gzip_compression_ratio}npct." 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>

I will appreciate anyone can help me to solve my problem. Thanks in =
advance.


.
Regards,

Jack Wang

------=_NextPart_000_0050_01C310B0.FCA66E40
Content-Type: text/html;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 6.00.2726.2500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><STRONG><FONT face=3D"MS Sans Serif">Hi,</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif"></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif">Now, mod_gzip works for .html =
and .txt=20
extension files. But, mod_gzip log displays SEND_AS_IS:HAS_CE error =
message for=20
.php file.</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif"></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif">Here is a section of error log =
for .php=20
file.</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif"></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif">GET /liwen/php/mail.php =
HTTP/1.1" 200=20
818 mod_gzip: SEND_AS_IS:HAS_CE In:0 -&lt; Out:0 =3D 0 =
pct.</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif"></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif">My mod_gzip configuration is =
as=20
follows,</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif"></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif">&lt;IfModule=20
mod_gzip.c&gt;<BR>mod_gzip_on&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Yes<BR>mod_gzip_can_negotiate&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Yes<BR>mod_gzip_static_suffix&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
.gz<BR>AddEncoding=20
gzip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
.gz<BR>mod_gzip_update_static&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
No<BR>mod_gzip_command_version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
'/mod_gzip_status'<BR>mod_gzip_temp_dir&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
/tmp/mod_gzip<BR>mod_gzip_keep_workfiles&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
No<BR>mod_gzip_minimum_file_size&nbsp;&nbsp;&nbsp;=20
500<BR>mod_gzip_maximum_file_size&nbsp;&nbsp;&nbsp;=20
1200000<BR>mod_gzip_maximum_inmem_size&nbsp;&nbsp;=20
60000<BR>mod_gzip_min_http&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
1000<BR>mod_gzip_handle_methods&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GET=20
POST<BR>mod_gzip_item_exclude&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
reqheader&nbsp; "User-agent:=20
Mozilla/4.0[678]"<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
\.html$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
\.htm$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
\.php$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
\.php3$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
\.txt$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
\.pdf$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
[^.]*$<BR>mod_gzip_item_exclude&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
\.js$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;=20
file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
\.css$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
\.pl$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;=20
handler&nbsp;&nbsp;&nbsp;=20
^cgi-script$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
handler&nbsp;&nbsp;&nbsp;=20
^perl-script$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
mime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
^text/html$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
mime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
^text/plain$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
mime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
^application/pdf$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
mime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
^httpd/unix-directory$<BR>mod_gzip_item_include&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
mime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
^application/x-httpd-php$<BR>mod_gzip_item_exclude&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
mime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
^image/<BR>mod_gzip_dechunk&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Yes<BR>LogFormat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
"%h %l %u %t \"%V %r\" %&lt;s %b mod_gzip: %{mod_gzip<BR>_result}n=20
In:%{mod_gzip_input_size}n -&lt; Out:%{mod_gzip_output_size}n =3D=20
%{mod_gzi<BR>p_compression_ratio}n pct."=20
common_with_mod_gzip_info2<BR>#LogFormat "%h %l %u %t \"%r\" %&gt;s %b=20
\"%{Referer}i\" \"%{User-Agent}i\"=20
mod_gzi<BR>p:%{mod_gzip_compression_ratio}npct."=20
common_with_mod_gzip_info2<BR>#CustomLog&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
logs/mod_gzip.log=20
common_with_mod_gzip_info2<BR>mod_gzip_add_header_count&nbsp;&nbsp;&nbsp;=
&nbsp;=20
Yes<BR>mod_gzip_send_vary =
Yes<BR>&lt;/IfModule&gt;<BR></FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif">I will appreciate anyone can =
help me to=20
solve my problem. Thanks in advance.</DIV>
<DIV><BR></DIV></FONT></STRONG>
<DIV><STRONG><FONT face=3D"MS Sans =
Serif">.<BR>Regards,</FONT></STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif">Jack=20
Wang</FONT></STRONG></DIV></BODY></HTML>

------=_NextPart_000_0050_01C310B0.FCA66E40--