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;
答案 0 :(得分:33)
使用:
listen 443 ssl;
并注释掉或删除:
# ssl on;
然后再次检查nginx -t