Certbot Nginx Authentication Failed for ai.chaoss.io - 404 Response

Are you intending or expecting the redirection from HTTP to HTTPS
for locations in .well-known/acme-challenge/?

$ curl -Ii http://ai.chaoss.io/.well-known/acme-challenge/4v4XdDwRTKIIGc9wVtYMv66I5WgDZnnA0zrgOoJ4SmH
HTTP/1.1 301 Moved Permanently
Server: nginx/1.18.0 (Ubuntu)
Date: Tue, 13 May 2025 18:11:49 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Location: https://ai.chaoss.io/.well-known/acme-challenge/4v4XdDwRTKIIGc9wVtYMv66I5WgDZnnA0zrgOoJ4SmH

And the results of following the redirection to HTTPS

$ curl -Ii https://ai.chaoss.io/.well-known/acme-challenge/4v4XdDwRTKIIGc9wVtYMv66I5WgDZnnA0zrgOoJ4SmH
HTTP/1.1 404 NOT FOUND
Server: nginx/1.18.0 (Ubuntu)
Date: Tue, 13 May 2025 18:13:33 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 8146
Connection: keep-alive
Access-Control-Allow-Origin: *
2 Likes