Hi,
I recently purchased an SSL cert for my domain. It covers both with and without “www”. The common name (CN) for the cert is www.domain.com, and frankly, it works perfectly. However, after checking my error logs, I noticed that Apache is complaining that the servername does not match the Common Name.
After some research, I realized that this is because Virtualmin has the servername
as “domain.com” and the alias
as “www.domain.com”. Seemed easy enough to fix, I just navigated my way over to: Services >> Configure Website >> Networking and Addresses and switched around the servername and alias so that the servername
is now “www.domain.com” and likewise the alias
is “domain.com”.
I restarted Apache and got no errors, and now I can browse the site in HTTPS without the Apache error clogging up the logs. So it seems like a success, however I must ask: Will doing this somehow cause trouble down the road in regard to Virtualmin?
Thank you.