Probably your SSL is messed up. If you have an SSL policy and for some reason your new sub domains didn’t copy that SSL over, then they will default to the default domain, which is almost always your top level domain.
Yeah all this is fine, I get the home dir and the structure of it is indeed correct.
Just when I browse to it I end up being redirected to the top level domain and that’s unfortunately the issue I’m wrestling with.
funny thing is that this is the only domain it does it on.
If I could delete it an start again I would but the problem is that the client has mailboxes and a website so that would be a nightmare to move around.
What SSL certificate are you using? Is it a self-signed? Are you sure it’s installed properly?
Any time you wind up at the default server on your Vitualmin is usually because of either a DNS issue or an SSL issue. One or the other isn’t working properly.
In my experience it’s almost always an SSL issue - either a certificate isn’t installed properly or is a self-signed certificate.
Are you sure you’re using a proper SSL certificate from LetsEncrypt or another reputable provider?
what website do you have in subserver? maybe website is doing the redirect (in db or configuration)… (?)
without proper logs/urls/apache confs, can’t help more…
This is usually the some variant of “the wrong site shows up” from the troubleshooting guide.
You probably have one of several issues that makes Apache believe some other site is a better, more specific, match for the URL. It could be that some sites have explicit IP and some have * (the explicit would take precedence) or SSL is not enabled on both and you’re connecting to SSL. Or, it could be that you have IPv6 enabled, but not configured correctly (this one is quite common lately as more hosts start enabled IPv6, by default). There’s a whole lot of reasons Apache will think you want a different site than what you think you’re asking for.