Unable to issue Let's Encrypt certificate in Plesk for a domain inside a Docker container: Invalid response from example.com, 404 Not Found

Follow

Comments

2 comments

  • Avatar
    Elias Soares
    While plesk team don't fix the issue, that's the workarround
     
    Find this block on your domain's generated config file (somewhere inside /etc/nginx/plesk.conf.d/)
     
            #extension letsencrypt begin
            location /.well-known/acme-challenge/ {
                    root /var/www/vhosts/default/htdocs;
                    types { }
                    default_type text/plain;
                    satisfy any;
                    auth_basic off;
                    allow all;
                    location ~ ^/\.well-known/acme-challenge.*/\. {
                            deny all;
                    }
            }
            #extension letsencrypt end
     
    Changing the location line to this fixes the issue:
     
            location ^~ /.well-known/acme-challenge/ {
     
    Then if you guys want to fix it, just update this template in letsencrypt extension.
     
  • Avatar
    Alexandr Shadrin

    Hello, @Elias Soares!

    Thank you very much for your effort and input.

    As our development team informed you in scope of the ticket you submitted, the issue should be already fixed by now.

    In case it is not true for you, do not hesitate to contact us back in scope of the ticket.

Please sign in to leave a comment.

Have more questions? Submit a request