My domain is crinavoevod.ro and I also have another one, baletstudio-crinavoevod.ro, pointing to the same site using another Nginx block.
I ran this command: certbot --nginx -d crinavoevod.ro
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for crinavoevod.ro
Waiting for verification...
Challenge failed for domain crinavoevod.ro
http-01 challenge for crinavoevod.ro
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: crinavoevod.ro
Type: unauthorized
Detail: Invalid response from
http://crinavoevod.ro/.well-known/acme-challenge/qEwokRXYMjVSzs_aP3HKGddJH08IoTYz3Bdc1lVFNKw
[2a01:7e01::f03c:92ff:fe9c:8d16]: "<html>\r\n<head><title>404 Not
Found</title></head>\r\n<body>\r\n<center><h1>404 Not
Found</h1></center>\r\n<hr><center>nginx</center>\r\n"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
My web server is Nginx 1.18.0 (Ubuntu) and the operating system my web server runs on is Ubuntu 20.04.1 LTS.
My hosting provider is Linode. I can login to a root shell on my machine. I’m not using a control panel. The version of my client is 0.40.0.
I host some other domains on this server, and on every one of them certbot worked smoothly, except to these 2 pesky ones.