VPS侦探论坛

标题: 重启nginx报错 [打印本页]

作者: haoyangmao8    时间: 2019-1-20 14:11
标题: 重启nginx报错
配置好了TSL1.3,用命令重启nginx报错提示下图
然而第14行是:ssl on;



最后我注释掉了 ssl on
然后再重启才正常,这样有什么问题么,为什么会这样呢!
作者: licess    时间: 2019-1-20 17:22
上面已经明确给出你原因了 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.
作者: haoyangmao8    时间: 2019-1-20 21:14
标题: 回复 2# 的帖子
谢谢大佬,这下我就放心了。




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4