VPS侦探论坛

 找回密码
 注册
查看: 2430|回复: 3

如何enable Gzip

[复制链接]
发表于 2019-9-28 15:14:54 | 显示全部楼层 |阅读模式

军哥,你好:

我用Wordpress建了个站,安装了缓存插件 Wp fastest cache,
它要求 enable Gzip

这是它的要求
You need to add the following code into /etc/nginx/nginx.conf to enable gzip on nginx servers.
这是它的网站
https://www.wpfastestcache.com/tutorial/how-to-enable-gzip-on-nginx/

但是,在它指出的位置没有nginx.conf这个文件,我在另一个位置(/usr/local/nginx/conf)上找到了nginx.conf,
我在它的官网上复制了代码粘到nginx.conf的最下边,重启nginx后,网站不见了,把nginx复原后,网站重现。

请问错误出现在哪里?

谢谢!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-9-28 15:59:11 | 显示全部楼层


/usr/local/nginx/conf/vhost/你的域名.conf  建立的主机配置文件在这里
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-9-28 16:00:44 | 显示全部楼层

wordpress的缓存 应该很多,试试这个缓存插件:WP-Rocket
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-9-28 19:52:55 | 显示全部楼层



gzip都是默认开启的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 10:04 , Processed in 0.025764 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表