nginx the "ssl" directive is deprecated, use the "listen ... ssl"

Solution 1:

Edit your listen statement from:

listen 443;

to

listen 443 ssl;

and comment out or delete :

# ssl on;   

then check nginx -t again.