I'm trying to get HTTPS again with certbot and I'm stuck.
I'm following the instructions on this page, and running the Nginx install plugin - sudo certbot --authenticator webroot --installer nginx
.
I go through some options, then it ask me for my webroot. I tried a bunch of options, including:
/usr/share/nginx/html
/var/www/html
/usr/share/nginx/www
/usr/share/nginx/html
and a bunch others. But the same error each time.
When I do nano /etc/nginx/sites-enabled/default
to check the config file, it tells me my webroot is /var/www/html, but that didn't work.
I'm using Nginx v1.10.3 on Ubuntu 16.04
The full error (I changed my domain name to example.com)
Waiting for verification...
<meta name="viewport" content="width=device"
Cleaning up challenges
Failed authorization procedure. www.example.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.example.com/.well-known/acme-challenge/kL088gTE6TOs1YrAs687MDPZBGRaL3tAZTVh-CNEmA0: "IMPORTANT NOTES:
The following errors were reported by the server:
Domain: www.example.com
<meta name="viewport" content="width=device"
Type: unauthorized
Detail: Invalid response from
http://www.example.com/.well-known/acme-challenge/kL088gTE6TOs1YrAs687MDPZBGRaL3tAZTVh-CNEmA0:
"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.