折雨的天空
apache2 开启gzip功能
2011-11-7 我好笨
#本节用于开启zip压缩,需要开启mod_deflate和mod_headers两个模块。

<ifmodule mod_deflate.c>




DeflateCompressionLevel 6




AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php




AddOutputFilter DEFLATE css js




</ifmodule>





DeflateCompressionLevel 这个是压缩级别,有效值是1-9
评论:
Kaedon
2011-11-25 14:44 回复
Now I'm like, well duh! Truly thnafkul for your help.
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容