countly-server icon indicating copy to clipboard operation
countly-server copied to clipboard

nginx ssl config example uses deprecated directive (nginx: [emerg] unknown directive "ssl")

Open majamee opened this issue 9 months ago • 2 comments

The config example for nginx ssl is outdated: https://github.com/Countly/countly-server/blob/master/bin/config/nginx.server.ssl.conf

If you are trying to use the above example file to start an nginx server, this will fail by now with any more recent nginx version with the error message: nginx: [emerg] unknown directive "ssl"

In order to fix it:

  • Change line 14 from listen 443; to listen 443 ssl;
  • Remove line 20 completely ssl on;

That would be it, after these changes the nginx ssl config example becomes usable again :)

majamee avatar Apr 25 '24 13:04 majamee

Do you know from which Nginx version this happens?

ar2rsawseen avatar Apr 29 '24 05:04 ar2rsawseen

Good day, for me it was the update to nginx version: nginx/1.26.0

majamee avatar Apr 29 '24 06:04 majamee