We are running a nginx server on Ubuntu 17.10 where cert renewal is handled by acme.sh
We would like to enforce https for all sites, but this seems to rely on plain http until a certificate has been issued and installed. So just adding the directive
First, since this is related to your server and software… can you please fill in this form?
Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
I ran this command:
It produced this output:
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don’t know):
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
One guess: what appears to be happening with the HTTPS version of your site is that the Typo3 CMS is intercepting requests to the /.well-known/acme-challenge/ path.
You may need to add a block to the HTTPS server in nginx like:
One guess: what appears to be happening with the HTTPS version of your site is that the Typo3 CMS is intercepting requests to the /.well-known/acme-challenge/ path.
You may need to add a block to the HTTPS server in nginx like:
location /.well-known/acme-challenge {
root /whatever/your/document/root/is/;
}
to prevent the requests from being sent on to the CMS (be it to PHP/fastcgi or proxy_pass or wherever).
We actually do have such a block.
location ^~ /.well-known/acme-challenge/ {
default_type “text/plain”;
root /var/www/letsencrypt-root;
}
Once you fix that, you may be able to keep the HTTPS redirect in place and not break renewal.
Do you imply that the renewal also works over a https connection, that is, that it is not going to be broken by the redirect?
Based purely on the x-typo3-* header, I would say the CMS is receiving the request.
Make sure that the block is in the right virtual host (the https/443 one), and I’m not too sure about the ^~ either - regex can safely be avoided here in any case.
Thanks! For the typo3 site this help. I have also got dozens of other sites on the server, therefore I thought it best to have a server-wide solution. But uferwerk.org is the most important one because I need to bring it into compliance with the EU General Data Protection Regulation