nginx: [warn] the “ssl” directive is deprecated

Posted on April 29, 2019 at 8:28 am

Today I upgraded Nginx to v1.16.0 stable and I noticed this:

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

To fix this just delete “ssl on;” from your vhost config file.

For example, change this:

server {
        listen 443 ssl http2;
        server_name website.com;
        ssl on;

To this:

server {
        listen 443 ssl http2;
        server_name gifcreator.online;

In short, “ssl on;” is not required anymore.

Receive updates via email

Other Posts

Updated Posts