Hello, 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 www.DeepL.com/Translator (free version)
It looks to me the problem here is Let's Encrypt does not issue the certificate for your domain. Follow this: https://www.howtoforge.com/community/threads/lets-encrypt-error-faq.74179/ When you get the certificate, https works and you can redirect to other https sites.
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.