Hello!
Ubuntu 16+nginx
I request a certificate with the command sudo / usr / local / bin / certbot-auto --nginx and see fail:
nginx: [warn] conflicting server name “domain.com” on 0.0.0.0:80, ignored
Waiting for verification…
Challenge failed for domain domain.com
http-01 challenge for domain.com
Cleaning up challenges
Some challenges have failed.
Please share the complete output. And answer the following questions:
Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
I ran this command:
It produced this output:
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
That's not longer supported. But you have more then one combination of port 80 and server name.
If nginx -T doesn't work, check your configuration manual to find these duplicated vHosts. Merge these in one config file, restart your nginx. Then it may work.