Please fill out the fields below so we can help you better.
My domain is:example.org
I ran this command:sudo certbot certonly --webroot --webroot-path /var/www/html --agree-tos --email myemail@yahoo.com -d example.org -d www.example.org --non-interactive
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for example.org
http-01 challenge for www.example.org
Using the webroot path /var/www/html for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. www.example.org (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.example.org/.well-known/acme-challenge/rwWu61jtp5oTdwnDxXdlld_2oszvV8OlVgMWLpdwnWQ: "
404 Not Found
", example.org (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://example.org/.well-known/acme-challenge/QNLcCb_a2n4lUGFg2WfPSOHVvPYKiN0vZxbFeZHGuSo: " 404 Not Found
404 Not Found
"
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: www.example.org
404 Not Found
Type: unauthorized
Detail: Invalid response from
http://www.example.org/.well-known/acme-challenge/rwWu61jtp5oTdwnDxXdlld_2oszvV8OlVgMWLpdwnWQ:
"404 Not Found
"Domain: example.org
404 Not Found
Type: unauthorized
Detail: Invalid response from
http://example.org/.well-known/acme-challenge/QNLcCb_a2n4lUGFg2WfPSOHVvPYKiN0vZxbFeZHGuSo:
"404 Not Found
"
My operating system is (include version):ubuntu 16.04
My web server is (include version): nginx/1.10.0
My hosting provider, if applicable, is: VPS
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
nginx config file:
server {
listen 80;
server_name example.org www.example.org;
location /static {
alias /home/deploy/sites/example.org/static;
}
location / {
proxy_set_header Host $host;
proxy_pass http://unix:/tmp/mysocket.socket;
}
location ^~ /\.well-known {
allow all;
root /var/www/html;
}
location ~ /\.well-known/acme-challenge {
root /var/www/html;
}
}