countly-server
countly-server copied to clipboard
nginx ssl config example uses deprecated directive (nginx: [emerg] unknown directive "ssl")
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;
tolisten 443 ssl;
- Remove line 20 completely
ssl on;
That would be it, after these changes the nginx ssl config example becomes usable again :)
Do you know from which Nginx version this happens?
Good day, for me it was the update to nginx version: nginx/1.26.0