I ran into a situation where an existing Ubuntu 18.04.6 LTS server running Virtualmin and Webmin started running out of space. So I decided to move some virtual servers to a new server similar to the first one. Let’s call the new server server2.domain.com to distinguish it from the old one server1.domain.com.
My normal approach to provisioning a new Virtualmin / Webmin server is to:
- Create the server, install Webmin and Virtualmin, get the SSL for the control panels running under a Lets Encrypt certificate for it’s FQDN.
- Migrate a virtual server from the old server to the new server.
- Get an additional Lets Encrypt certificate for the migrated virtual server.
- Enable SSL on the webserver within the migrated virtual server and move the content from the http to the https website.
In this case, I decided to move my company’s own web presence to the new server first, so that we took the downtime hit if things didn’t go perfectly.
The problem I ran into is that the new Webmin / Virtualmin server is named server2.domain.com and the first migrated virtual server happens to contain the parent domain for that subdomain, in this example called domain.com.
The Lets Encrypt certificate for server2.domain.com covering Webmin and Virtualmin is set up and works correctly. But when I migrated the virtual server for domain.com to the new hosting server, and got the Lets Encrypt certificate issued for it correctly, as soon as I enabled SSL on that website, my browser started reporting “This Connection is Not Private” for the Virtualmin / Webmin control panel.
The certificate being presented is for the parent domain, not the subdomain.
Why is this happening? How should I have set this up, so the certificate presented by Webmin and Virtualmin remains server2.domain.com?
Thanks,
–Dave Aiello
SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu 18.04.6 LTS |
Webmin version | 1.990 |
Virtualmin version | 6.17-3 |
Related packages | Not sure what you want here |