Hello i’m trying to install a new certificate on my VPS , I can access http://outdooors.ma/.well-known/acme-challenge/a.txt and http://outdooors.ma/.well-known/acme-challenge/test but when i try to create the certificate it gives me this error, please help
this is my nginx configuration
location /.well-known/acme-challenge/ {
root /var/www/django_projects/Outdooors/static/;
}
My domain is: www.outdooors.ma
I ran this command: certbot certonly --webroot -w /var/www/django_projects/Outdooors/ -d outdooors.ma -d www.outdooors.ma
It produced this output: Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.outdooors.ma
Using the webroot path /var/www/django_projects/Outdooors for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. www.outdooors.ma (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: I nvalid response from http://www.outdooors.ma/.well-known/acme-challenge/X2c3Wha2RcWkpLl0wqs-3nvtGHQ87eX4nG4uyQTiDzg [2a07:7800::137]: “\n\n404 Not Found\n\n
Not Found
\n<p”IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: www.outdooors.ma
Type: unauthorized
Detail: Invalid response from
http://www.outdooors.ma/.well-known/acme-challenge/X2c3Wha2RcWkpLl0wqs-3nvtGHQ87eX4nG4uyQTiDzg
[2a07:7800::137]: “\n\n404 Not
Found\n\nNot Found
\n<p”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 (include version): nginx/1.14.0 (Ubuntu)
The operating system my web server runs on is (include version):Ubuntu 18.04
My hosting provider, if applicable, is:OVH
I can login to a root shell on my machine (yes or no, or I don’t know):yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):no
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):certbot 0.31.0