博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

http.conf的设置

LoadModule deflate_module modules/mod_deflate.so 

<ifmodule mod_deflate.c>  
AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml  
DeflateCompressionLevel 9   
SetOutputFilter DEFLATE   
#DeflateFilterNote Input instream   
#DeflateFilterNote Output outstream   
#DeflateFilterNote Ratio ratio   
#LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate   
#CustomLog logs/deflate_log.log deflate   
</ifmodule> 
 

注意apache在编译的时候需要添加

 

--enable-deflate
通过Yslo的网络-》 所有查看到的信息

DateFri, 27 Nov 2009 02:52:02 GMT
ServerApache
VaryAccept-Encoding
Content-Encodinggzip
Content-Length12973
Content-Typetext/html; charset=utf-8
X-CacheMISS from ....
Proxy-Connectionkeep-alive

 

 

 

posted on 2009-11-27 10:29  Likwo  阅读(1195)  评论(0编辑  收藏  举报