Redirect to external URL but letsencrypt on own Server

Discussion in 'Installation/Configuration' started by newan, Feb 29, 2020.

  1. newan

    newan New Member


    I have a domain which I would like to forward completely on Facebook.
    For Http I have set this up under Redirection, it works.

    If someone tries to call the domain via https this does not work. It fails because I don't have a certificate and I can't activate it because letsencrypt can't complete the challenge. The redirect is before the

    location ^~ /.well-known/acme-challenge/ {
    access_log off;
    log_not_found off;
    auth_basic off;
    root /usr/local/ispconfig/interface/acme/;
    autoindex off;
    index index.html;
    try_files $uri $uri/ =404;

    how can i set up a redirect and use letsencrypt internally?

    Translated with (free version)
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. newan

    newan New Member

    The problem is the Letsencrypt to check the folder /.well..... folder on the domain, but it is also forwarded. Would have to exclude the folder?

    If I disable forwarding, enable ssl+Letsencrypt and then enable forwarding again, everything works. But the certificate is not updated now.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

  5. newan

    newan New Member

    ok i use nginx as webserver. How can exclude it the folder?

Share This Page