问题描述
升级nginx版本1.15之后,使用之前的配置文件,启动nginx时,出现如下信息:
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /usr/local/nginx/conf/ssl.conf
问题分析
这是一个nginx warn警告,nginx能正常使用,但是由于强迫症,还是要把warn解决掉。
根据翻译,nginx提示ssl这个指令已经不建议使用,要使用listen ... ssl替代。网上查找nginx更新日志提到:
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.
ssl
不建议作为一个指令使用,而只是listen
指令的一个参数。
解决办法
如果使用listen 443 ssl
,删除ssl on
就行了。
您可以选择一种方式赞助本站
支付宝转账赞助
