Conflicting server name "" on, ignored NGINX error log Ubuntu 20.04

  • Posted October 12, 2020
  • Nginx

Hello, when I check the nginx error log I notice that alert and I don’t know why, I cannot access my website from http or https, my DNS in cloudflare are:

A - - MY IP
CNAME - www -

The 4 last lines of the log:

2020/10/12 07:03:22 [notice] 15705#15705: signal process started
2020/10/12 07:18:50 [warn] 15818#15818: conflicting server name "" on, ignored
2020/10/12 07:18:50 [warn] 15818#15818: conflicting server name "" on, ignored
2020/10/12 07:54:16 [notice] 16047#16047: signal process started

Any help please?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Hi there @hcmendez,

It most likely means that you have your domain specified in multiple Nginx server blocks.

What you could do is use the grep command and search for the domain inside your /etc/nginx/sites-enabled folder:

  1. grep -r /etc/nginx/sites-enabled

If you see the domain name in more than server blocks for port 80, you would need to remove the duplicate one and then restart Nginx.

Hope that this helps! Regards, Bobby

In my case I had created another entry in /etc/nginx/conf.d/virtual.conf, from a previous guide.

Thanks for the answers, I deployed another droplet with Open LiteSpeed. Everything is good now, thanks.