apache使用mod_deflate模块开启压缩功能
时间:2008-09-23 来源:szszszsz
在apache配置文件httpd.conf加入如下参数设置, 保存退出,重启apache服务程序即可
<ifmodule mod_deflate.c>
DeflateCompressionLevel 6
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE html htm xml php css js
</ifmodule>
相关阅读 更多 +