互联网技术 · 2023年11月23日

解决LNMP升级到nginx 1.16.0后ssl报错的方法

我在前面测试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)
推荐文章
LNMP升级nginx到1.16.0后ssl报错的解决办法
自己建网站的步骤
LNMP升级nginx到1.16.0后ssl报错的解决办法
WordPress主机推荐
LNMP升级nginx到1.16.0后ssl报错的解决办法
速卖通一件代发货网站

About The Author

OpenMagic API

Need more than content? Move into the product flow.

If you are here for model access, pricing, developer docs, or the future API console, the dedicated product path now lives on api.openmagic.ai.

登录免费注册