Duplicate “server_tokens” directive

I just upgraded EE on two of my boxes. The surprise was my nginx won’t start anymore with the error:

nginx: [emerg] "server_tokens" directive is duplicate in /etc/nginx/conf.d/ee-nginx.conf:5

After a lot of testing I finally got a workaround to the issue just renaming ee-nginx.conf to something else:

cd /etc/nginx/conf.d
mv ee-nginx.conf ee-nginx.conf-old

After that, nginx -t didn’t detect any issues anymore, and service nginx start brought all my sites back online.

For sure it is a temporary solution, a workaround, but perhaps it might be useful for someone else.

Hi @janiosarmento

Please try the latest EasyEngine. Use ee update to upgrade your current EasyEngine version to the latest.

It’s been a long time, and we haven’t heard from you. It looks like your issue is resolved.

I am closing this support topic for now. Feel free to create a new support topic if you have any queries further. :slight_smile: