VPS侦探论坛

 找回密码
 注册
查看: 2757|回复: 2

重启nginx报错

[复制链接]
发表于 2019-1-20 14:11:02 | 显示全部楼层 |阅读模式

配置好了TSL1.3,用命令重启nginx报错提示下图
然而第14行是:ssl on;



最后我注释掉了 ssl on
然后再重启才正常,这样有什么问题么,为什么会这样呢!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-1-20 17:22:34 | 显示全部楼层


上面已经明确给出你原因了 nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in
从nginx 1.15.0 开始ssl on已经移除,不需要再添加
Changes with nginx 1.15.0                                        05 Jun 2018

    *) Change: the "ssl" directive is deprecated; the "ssl" parameter of the
       "listen" directive should be used instead.
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-1-20 21:14:43 | 显示全部楼层

回复 2# 的帖子


谢谢大佬,这下我就放心了。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-22 12:25 , Processed in 0.025929 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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