Because port 80 is used by pi-hole, I installed NGINX and set the default port to 81.
Then I configured my router to map (type: TCP) the external port 80 to internal port 81.
I tested folders starting with “.” on my NGINX webserver, they can be reached through my domain.
Nevertheless I get below error message.
Please help!
Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
cert.
certbot: error: unrecognized arguments: /var/www/nginx
Then I tried:
sudo certbot certonly -w /var/www/nginx -d home.dontharm.me
Result:
How would you like to authenticate with the ACME CA?
1: Place files in webroot directory (webroot)
2: Spin up a temporary webserver (standalone)
When I press <1>, same error 404 as in the beginning.
Sorry, I’ve no time right now but the problem is that your domain has an AAAA (IPv6) record defined but seems it is not configured correctly on your end. You should review your IPv6 conf or remove the AAAA record.