Shows a warning Message when checked the NGINX configuration using the command nginx -t

$ sudo nginx -t

nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/sites-enabled/thelinuxfaq.com:15


Open the virtual host configuration file for the domain thelinuxfaq.com(example) and modify it like below,

listen 443;
to
listen 443 ssl;

and comment out or delete the line:

# ssl on; 

then, verify the configuration using the command nginx -t again.

$ sudo nginx -t