Faulty Let's Encrypt ACME redirect on virtual server creation.

1 post / 0 new
#1 Sun, 09/03/2017 - 08:01
Gerritjan

Faulty Let's Encrypt ACME redirect on virtual server creation.

The problem manifests itself when creating a new virtual server when "Redirect HTTP to HTTPS by default?" is turned on. When trying to issue a certificate from let's encrypt, it will return an error. The automatically generated redirect in the virtual server conf appears to be the problem:

RedirectMatch /(?!.well-known)(.*)$ https://google.com/$1


When I change this to:

RedirectMatch /(?!.well-known)(.*)$ https://google.com/.well-known/$1


Everything works properly again, I am running Virtualmin 6.00 GPL, Webmin 1.852, Apache 2.4.27