nginx 提示the "ssl" directive is deprecated, use the "listen ... ssl" directive instead

  1. 该问题是由于新版nginx采用新的方式进行监听https请求了解决方式如下:

  2. 在listen中改为
          listen 443 ssl;
  1. 删除ssl配置
           # ssl on;


解决完成前后的配置如下
解决前:

server { listen 443 ; ssl on; }

解决后

server { listen 443 ssl ; }
原文地址:https://www.cnblogs.com/123hll/p/12253238.html