Apache启用gzip压缩

一月 8th, 2010 Posted in Apache | 阅读次数: 365 次

原文:http://www.hiadmin.com/?p=101

  1. <ifmodule mod_deflate.c>
  2. DeflateCompressionLevel 6
  3. SetOutputFilter DEFLATE
  4. DeflateFilterNote Input instream
  5. DeflateFilterNote Output outstream
  6. DeflateFilterNote Ratio ratio
  7. LogFormat ‘"%r" %{outstream}n/%{instream}n (%{ratio}n%%)’ deflate
  8. CustomLog logs/deflate_log.log deflate
  9. </ifmodule>

压缩率6以上
则压缩效果不明显
并且CPU占用率提高过多

相关日志:

Tags:

留下您的脚印