You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Shao Liang Jia <ji...@cn.ibm.com> on 2006/11/09 11:18:07 UTC

[users@httpd] mod_deflate does not work

Hi, Everyone:

I installed apache on Windows XP. mod_deflate is in the
"apache_home/modules" directory.
When I try to use it, it does not work. Because from the log infomation
list below, the output is not
compressed. I download the source code of apache and zlib and recompiled
mod_deflate.
It still does not work.

This is the .conf file:

LoadModule deflate_module modules/mod_deflate.so
DeflateFilterNote ratio

CustomLog logs/deflate_log deflate
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat %{User-agent}i agent
LogFormat '"%v %h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i""
(%{ratio}n)' deflate

CustomLog logs/A_SUSRID6_access_log common
CustomLog logs/A_SUSRID6_referer_log referer
CustomLog logs/A_SUSRID6_agent_log agent
CustomLog logs/deflate_log deflate

<Location />
SetOutputFilter DEFLATE
</Location>


This is the log file(the original file size is 151806, the compressed file
size is still 151806):
"jiasl 127.0.0.1 - - [09/Nov/2006:17:56:34 +0800] "GET / HTTP/1.1" 200
151806 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.1.4322)"" (-)


Thanks.

Re: [users@httpd] mod_deflate does not work

Posted by Joshua Slive <jo...@slive.ca>.
On 11/9/06, Shao Liang Jia <ji...@cn.ibm.com> wrote:

>  This is the log file(the original file size is 151806, the compressed file
> size is still 151806):
>  "jiasl 127.0.0.1 - - [09/Nov/2006:17:56:34 +0800] "GET / HTTP/1.1" 200
> 151806 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
> 1.1.4322)"" (-)

See the DeflatefilterNote directive for info on how to properly log
the activity of mod_deflate.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org