apache 开启 网页压缩

来源:互联网 发布:克莱德曼知乎 编辑:程序博客网 时间:2024/05/22 13:08

apache 开启网页压缩需开始两个模块,一个是header,另一个是deflate模块

 

根据apache2.2手册里面写的,简单配置可写为如下:

 

 

这是一个针对心急者的示范配置:

仅仅压缩少数几种类型

AddOutputFilterByType DEFLATE text/html text/plain text/xml

原创粉丝点击