Unable to issue a Let's Encrypt certificate for domain with forwarding hosting type: nginx is not installed or is disabled on the Plesk server

Comments

2 comments

  • Avatar
    B3 Support (Edited )

    This problem still seems to exist.

    Plesk 18.0.63
    SSL IT 1.15.3-3574
    LetsEncrypt 3.2.8-3078
    Webserver Apache

    Website is configured as Forward Hosting.

    Invalid response from .https://acme-v02.api.letsencrypt.org/acme/authz-v3/1234567890
    Details:
    Type: urn:ietf:params:acme:error:unauthorized
    Status: 403
    Detail: 123.123.123.123: Invalid response from https://mydomain.de/forward/.well-known/acme-challenge/xyz34544565656565656: 404

    We have now removed the Certificate, but there is no option available to secure the Website with a new LetsEncrypt Certificate again.

    The option to request a certificate with LetsEncrypt is only available if hosting type is set to "Website".

    We have found this discussion https://talk.plesk.com/threads/lets-encrypt-doesnt-work-if-hosting-type-forwarding-is-selected.357308/
    A comment from June 2023 stated that this is only possible if nginx is activated.

    0
  • Avatar
    B3 Support (Edited )

    We've fixed the problem with a workaround.

    We've replaced the RedirectPermant with a RedirectMatch statement:

    RedirectMatch 301 ^(?!/\.well-known).* "https://foo.bar/boo/"

    To make this change permanent, you have to edit the configuration templates.

    Create the custom folder under:

    cd /opt/psa/admin/conf/templates/
    mkdir -p custom/domain

    Copy the source template:

    cp /opt/psa/admin/conf/templates/default/domain/standardForwarding.php \
       /opt/psa/admin/conf/templates/custom/domain/

    Replace the RedirectPermanent at line 64:

    vi /opt/psa/admin/conf/templates/custom/domain/standardForwarding.php

    Before:

    <?php if (302 == $VAR->domain->forwarding->redirectHttpCode): ?>
        RedirectTemp / "<?php echo $VAR->domain->forwarding->redirectUrl ?>"
    <?php else: ?>
      RedirectPermanent / "<?php echo $VAR->domain->forwarding->redirectUrl ?>"
    <?php endif; ?>

    After:

    <?php if (302 == $VAR->domain->forwarding->redirectHttpCode): ?>
        RedirectTemp / "<?php echo $VAR->domain->forwarding->redirectUrl ?>"
    <?php else: ?>
        RedirectMatch 301 ^(?!/\.well-known).* "<?php echo $VAR->domain->forwarding->redirectUrl ?>"
    <?php endif; ?>

     

    But this is only a workaround, please fix this annoying error.

    0

Please sign in to leave a comment.

Have more questions? Submit a request