agent icon indicating copy to clipboard operation
agent copied to clipboard

Letsencrypt renew fail if https redirect is enabled.

Open lbthomsen opened this issue 4 years ago • 0 comments

Current config:

server {
        listen 80;
        server_name wp0.cow.dk;

    
location /.well-known {

    default_type "text/plain";

    rewrite /.well-known/(.*) /$1 break;

    root /var/lib/subutai/letsencrypt/webroot/wp0.cow.dk/.well-known/;

}

        return 301 https://$host:443$request_uri;  # enforce https
}

Needs to be changed to:

server {
        listen 80;
        server_name wp0.cow.dk;

    
location /.well-known {

    default_type "text/plain";

    rewrite /.well-known/(.*) /$1 break;

    root /var/lib/subutai/letsencrypt/webroot/wp0.cow.dk/.well-known/;

}

location / {
        return 301 https://$host:443$request_uri;  # enforce https
}

}

lbthomsen avatar Jun 18 '20 02:06 lbthomsen