By Henry Mendez
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 - mydomain.com - MY IP
CNAME - www - mydomain.com
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 "mydomain.com" on 0.0.0.0:80, ignored
2020/10/12 07:18:50 [warn] 15818#15818: conflicting server name "www.mydomain.com" on 0.0.0.0:80, ignored
2020/10/12 07:54:16 [notice] 16047#16047: signal process started
Any help please?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hi there @hcmendez,
It most likely means that you have your mydomain.com
domain specified in multiple Nginx server blocks.
What you could do is use the grep
command and search for the mydomain.com
domain inside your /etc/nginx/sites-enabled
folder:
- grep -r mydomain.com /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
Thanks for the answers, I deployed another droplet with Open LiteSpeed. Everything is good now, thanks.
In my case I had created another entry in /etc/nginx/conf.d/virtual.conf, from a previous guide.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.