apache 启用压缩
1.配置apache 配置文件vim /etc/http/conf/httpd.conf
2.添加模块,规则
LoadModule deflate_module modules/mod_deflate.so
DeflateCompressionLevel 9
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js
3.保存,退出
4.重新启动过apache服务
5.查看时候压缩,以及压缩比例
http://tool.chinaz.com/Gzips/
页:
[1]