美文网首页
centeros7 apache开启Gzip

centeros7 apache开启Gzip

作者: 某人A | 来源:发表于2018-04-21 17:48 被阅读0次

首先确保模块mod_deflate开启了

查看的方法

httpd -M

然后用管道正则匹配,出现模块shared就说明启用了,否则安装
配置文件加入

<IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
</IfModule>

相关文章

网友评论

      本文标题:centeros7 apache开启Gzip

      本文链接:https://www.haomeiwen.com/subject/lyoxlftx.html