[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> </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> </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> </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 -< Out:0 =3D 0 =
pct.</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif"></FONT></STRONG> </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> </DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif"><IfModule=20
mod_gzip.c><BR>mod_gzip_on &n=
bsp; =20
Yes<BR>mod_gzip_can_negotiate =20
Yes<BR>mod_gzip_static_suffix =20
.gz<BR>AddEncoding=20
gzip &nb=
sp; =20
.gz<BR>mod_gzip_update_static =20
No<BR>mod_gzip_command_version =20
'/mod_gzip_status'<BR>mod_gzip_temp_dir &nbs=
p; =20
/tmp/mod_gzip<BR>mod_gzip_keep_workfiles &nb=
sp;=20
No<BR>mod_gzip_minimum_file_size =20
500<BR>mod_gzip_maximum_file_size =20
1200000<BR>mod_gzip_maximum_inmem_size =20
60000<BR>mod_gzip_min_http  =
; =20
1000<BR>mod_gzip_handle_methods GET=20
POST<BR>mod_gzip_item_exclude &n=
bsp;=20
reqheader "User-agent:=20
Mozilla/4.0[678]"<BR>mod_gzip_item_include &=
nbsp; =20
file =20
\.html$<BR>mod_gzip_item_include  =
; =20
file =20
\.htm$<BR>mod_gzip_item_include =
=20
file =20
\.php$<BR>mod_gzip_item_include =
=20
file =20
\.php3$<BR>mod_gzip_item_include  =
; =20
file =20
\.txt$<BR>mod_gzip_item_include =
=20
file =20
\.pdf$<BR>mod_gzip_item_include =
=20
file =20
[^.]*$<BR>mod_gzip_item_exclude =
=20
file =20
\.js$<BR>mod_gzip_item_include &=
nbsp;=20
file =20
\.css$<BR>mod_gzip_item_include =
=20
file =20
\.pl$<BR>mod_gzip_item_include &=
nbsp;=20
handler =20
^cgi-script$<BR>mod_gzip_item_include =
=20
handler =20
^perl-script$<BR>mod_gzip_item_include  =
; =20
mime =20
^text/html$<BR>mod_gzip_item_include &=
nbsp; =20
mime =20
^text/plain$<BR>mod_gzip_item_include =
=20
mime =20
^application/pdf$<BR>mod_gzip_item_include &=
nbsp; =20
mime =20
^httpd/unix-directory$<BR>mod_gzip_item_include &n=
bsp; =20
mime =20
^application/x-httpd-php$<BR>mod_gzip_item_exclude  =
; =20
mime =20
^image/<BR>mod_gzip_dechunk &nbs=
p; =20
Yes<BR>LogFormat &nb=
sp; =20
"%h %l %u %t \"%V %r\" %<s %b mod_gzip: %{mod_gzip<BR>_result}n=20
In:%{mod_gzip_input_size}n -< 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\" %>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 &nb=
sp; &nbs=
p; =20
logs/mod_gzip.log=20
common_with_mod_gzip_info2<BR>mod_gzip_add_header_count =
=20
Yes<BR>mod_gzip_send_vary =
Yes<BR></IfModule><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> </DIV>
<DIV><STRONG><FONT face=3D"MS Sans Serif">Jack=20
Wang</FONT></STRONG></DIV></BODY></HTML>
------=_NextPart_000_0050_01C310B0.FCA66E40--