Fixing Certbot error: ACME challenge unauthorized 404 on Nginx reverse proxy
Root Cause Diagnosis Let’s Encrypt’s HTTP-01 validator requests http://<domain>/.well-known/acme-challenge/<token> on port 80. It gets a 404 when Nginx routes that request to the wrong place. Either the catch-all location / proxies it to an upstream app that has no such route, or Nginx serves it from a document root that differs from the –webroot-path Certbot … Read more