开启Apache的GZIP压缩功能

WhatsApp 免费版正常上网就能打开,自带谷歌翻译,手机 WhatsApp 扫码即用,免费使用最近爆火的 chatGPT

在Apache2之后的版本,GZIP压缩模块名不叫gzip,而叫mod_deflate

1) 找到apache的配置文件httpd.conf,找到下面两行,将前面的 # 去掉。

  1. LoadModule headers_module modules/mod_headers.so
  2. LoadModule deflate_module modules/mod_deflate.so

2) 增加一个节点

<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,

3) 保存退出。

4) 重启Apache服务。

点击链接 https://a.eturl.cn/PKFW4c ,加入 WhatsApp 营销群。注意仅限讨论 WhatsApp 相关话题,广告勿扰。

仍有疑问,搜索微信号 jiadingqiang,或点击 链接,加个 微信 好友,一起交流。

《开启Apache的GZIP压缩功能》有8条评论

发表评论