开启gzip压缩
编辑vi /etc/httpd/conf.d/bw_mod.conf文件,
把内容更改为:
#LoadModule bw_module modules/bw_mod.so
#BandWidthError 510
LoadModule deflate_module modules/mod_deflate.so
DeflateCompressionLevel 6
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js
阅读(1856) | 评论(0) | 转发(0) |