So I have 2 domains. echocheats.xyz and fomic.net Fomic.net is my main one and I host the panel there. It should point to the default index.html, and indeed it does. I added the echocheats.xyz by adding a website and inputing the domain echocheats.xyz in the domain field. It should redirect to a blank index.html with nothing on it. But it doesn't. I edited the index.html file in the fomic.net directory to <title>mess!</title>. As expected it shows up on the fomic.net site. But it also shows up on echocheats.xyz. Why isn't this working? I pointed the @ and www of the echocheats to the server ip and it does. Here are some screenshots:
I had to manually edit the vhost file in order to get this to work <VirtualHost *:80> was converted to <VirtualHost echocheats.xyz:80> I really wished this would be done automatically without me needing to manually edit the files
Your manual edit was not required of course, you made a simple failure when you set up the sites: you mixed up * and the IP address in the IPv4 field. Either use * for all sites that point to the same IP or use the IP address for all sites but never mix that as an IP is a stronger match than a wildcard, so apache must route all traffic to the site that you assigned the Ip to. To fix your problem, go to the settings of the second site, change the IPv4 field to * and press save.