Could not connect to http://domain.name.org/.well-known/acme-challenge/xxxx

Hello @MikeiLL,

Change you nginx conf from:

server {
 listen 80;
 server_name  www.mydomain.org mydomain.org;
 rewrite ^/(.*) https://mydomain.org/$1 permanent;
 
# Do not use a /tmp folder or other users can obtain certificates.
    location '/.well-known/acme-challenge' { 
    default_type "text/plain";
    root        /etc/letsencrypt/webrootauth;
   }
}

to:

server {
 listen 80;
 server_name  www.mydomain.org mydomain.org;
 
# Do not use a /tmp folder or other users can obtain certificates.
    location '/.well-known/acme-challenge' { 
    default_type "text/plain";
    root        /etc/letsencrypt/webrootauth;
   }
    
    location / {
    rewrite ^/(.*) https://mydomain.org/$1 permanent;
    }
}

And try again.

Cheers,
sahsanu

1 Like