Hi, The title might seem a bit weird, but I recently discovered that 2 of my domains are going to the wrong data space or they are going to another domain (all of those domains are hosted on the same server), but the others are fine. I'm using CloudFlare and I tried disabling it but I didn't not affect anything (I waited a bit for changes to take effect). I also tried removing the domain and then adding it back again but this also had no effect. Thanks for your help already Me
does all sites have https enabled? if not, then non https sites that get accessed by https will get redirected to the first https site when apache cant find a matching vhost and domain on port 443. so if you run more then one site on a IP with https, then ensure that you enable https for all sites that use this IP. Beside that, ensure that you do not mix * and IP in sites, an IP is always a stronger match than a wildcard.
All domains are using HTTPS, and what do you mean with "Beside that, ensure that you do not mix * and IP in sites, an IP is always a stronger match than a wildcard." And I'm also using SNI on those domains, could that be the problem? I don't think so because I'm also using SNI on another domain but this one works fine.
This is not about sni, sni works with * and with an IP but apache will not route the traffic properly if you have some sites that use * in the IP field while others have the real IP selected. If you ensured that you did not mixed that, then check the generated vhost files on the shell.
All domains where using * in the IPV4 field and some had IPV6 filled in, i'm now gonna assign the IPV4 and IVP6 to all sites and see if that fixes the issue