问题:

[[email protected] conf.d]# nginx -s reload
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/ssl.conf:4

该问题是由于新版nginx采用新的方式进行监听https请求咯.

解决方法:

注释之前的 ssl on;同时在listen 443; 后面加上 ssl

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

无报错:

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

SSL验证成功:

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


 

相关文章: