I have a problem...
i had a domain.com.au on virtual server
i tried to edit the index.html and got an error saying it could not save the changes to the file...i got the shits and deleted the virtual server. I have about 4 other virtual servers on the same virtualmin gpl system.
after deleting the domain, when i type domain.com.au into the web browser, it is displaying the website for another of the virtual servers on this virtualmin gpl system.
why is that happening?
there is something amiss going on for this to happen...how can virtualmin as setup in default configuration cock this up exactly? It should be showing an error not another website on the same server!
It appears to be displaying the website for the first Virtual server in the list of virtual servers on the virtualmin machine.
"#ip addr sh" (returns internal ip address as per eth0)
"grep -i '<virtualhost' /etc/httpd/conf/httpd.conf" (returns correct ip addresses and ports as expected)
Network interface for virtual addresses is set to "eth0" Default Virtual Server IP address is "from Network interface" Default IP address for dns records is "Automatically detect external address" (server is behind a NAT i believe...Google Cloud VPS)
My understanding is that this is an apache quirk...
https://serverfault.com/questions/601573/domain-name-is-bringing-up-wron... that apache will deliver the first vhost in a list when one deletes a site and doesnt also remove the dns entry? (dns is hosted externally at domain registrar)
How do i setup virtualmin to get around this issue (if it is an the actual issue as found in the forum link i posted above)