Apache启用gzip压缩
一月 8th, 2010 Posted in Apache | 阅读次数: 365 次
原文:http://www.hiadmin.com/?p=101
- <ifmodule mod_deflate.c>
- DeflateCompressionLevel 6
- 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>
压缩率6以上
则压缩效果不明显
并且CPU占用率提高过多
相关日志:
Tags: Apache