darkpoon 发表于 2015-8-2 12:26:38

Apache Gzip设置

  http.conf的设置
  LoadModule deflate_module modules/mod_deflate.so

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   


  注意apache在编译的时候需要添加
  
--enable-deflate
通过Yslo的网络-》 所有查看到的信息
  DateFri, 27 Nov 2009 02:52:02 GMTServerApacheVaryAccept-EncodingContent-EncodinggzipContent-Length12973Content-Typetext/html; charset=utf-8X-CacheMISS from ....
Proxy-Connectionkeep-alive

  
  
  
页: [1]
查看完整版本: Apache Gzip设置