I’ve got a shiny new VirtualMin install running on Centos 7. Right now I’m trying to get “preview urls” working as described in the FAQ here:
I’ve created a top level virtual server for mydomain.tld and added a wildcard SSL certifcate (*.mydomain.tld), which is working fine also.
So far so good. I can hit https://mydomain.tld and it has a valid SSL.
Now I want to use subdomains of mydomain.tld as staging URLs. Let’s say my client’s website is hosted at myclient.com. My staging / preview URL is myclient.mydomain.tld.
What I’m stuck on is allowing the alias servers to use the correct SSL. When I hit https://myclient.mydomain.tld it’s pointed at the server correctly but the certificate is not valid because it’s using the myclient.com certificate.
How do I make the myclient.mydomain.tld use the wildcard *.mydomain.tld cert?
… or is there a better way to set this up?
OS: CentOS Linux 7.6.1810