169

After NGINX upgrade to v1.15.2 starts getting the warning.

nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /usr/local/etc/nginx/sites-enabled/confid-file-name:8

Where the 8th line is ssl on;

how I can solve this?

1
  • 3
    I had both listen ... ssl and ssl on, now seems ssl on is no more require Commented Aug 6, 2018 at 8:12

2 Answers 2

351

Edit your listen statement from:

listen 443;

to

listen 443 ssl;

and comment out or delete :

# ssl on;   

then check nginx -t again.

Sign up to request clarification or add additional context in comments.

2 Comments

reloading nginx config with service nginx reload or other commands depending on your operating system might be necessary
search for missing ssl in all your config fies with grep "443;" /etc/nginx/sites-available/*
1

Too elaborate on this as per https://nginx.org/en/CHANGES

Changes with nginx 1.15.0 05 Jun 2018

*) Change: the "ssl" directive is deprecated; the "ssl" parameter of the
   "listen" directive should be used instead.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.