nginx已弃用“ ssl”指令,请使用“ listen ... ssl”

时间:2018-08-06 08:04:45

标签: macos nginx homebrew

NGINX升级到v1.15.2后,开始收到警告。

nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /usr/local/etc/nginx/sites-enabled/confid-file-name:8

第8行是ssl on;

1 个答案:

答案 0 :(得分:33)

使用:

   listen 443 ssl;

并注释掉或删除:

    #  ssl on;   

然后再次检查nginx -t

相关问题