在测试使用 fastcgi_cache 加速 WordPress 网站时,我顺便将 Nginx 升级到了 1.16.0。当我重启 LNMP 时,系统提示了一个警告:[warn] the “ssl” directive is deprecated,并指出了虚拟主机配置文件中的具体行号,例如第 45 行和第 46 行。
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /usr/local/nginx/conf/vhost/blog.naibabiji.conf
这个问题的根源在于新版本的 Nginx 不再支持使用 ssl on 这样的指令。解决方法很简单,只需在虚拟主机配置文件中删除 ssl on; 这一行即可。
- LNMP 升级 Nginx 到 1.16.0 后 SSL 报错的解决办法
- 网站 HTTPS 不是绿锁_启用 SSL 证书提示不安全的解决办法
- SiteGround 设置免费 SSL 证书教程(新面板适用)
- 宝塔面板配置 SSL 教程_HTTPS 证书续期失败解决办法
- DirectAdmin 虚拟主机给网站添加 SSL 证书的方法
5/5 – (1 vote)



