nginx:[warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead

1, nginx restart error
[warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead
as shown in the figure:

vim nginx.conf
:set nu
2, view the configuration file 3,

line 119 error, so I changed the writing method listen 443 ssl;
as shown in the figure:

/usr/local/nginx/sbin/nginx -s reloadRestart
normal

Guess you like

Origin www.cnblogs.com/stronger-xsw/p/12760847.html