问题:

[[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


 

相关文章:

  • 2021-10-31
  • 2021-07-17
  • 2021-10-23
  • 2022-12-23
  • 2021-06-26
猜你喜欢
  • 2021-12-08
  • 2022-12-23
相关资源
相似解决方案