I have been running virtualmin on some very old hardware and every thing has been working fine but I decided to update to some newer hardware. So I installed ubuntu 10.04 and then virtualmin using install.sh. The major difference is the old box is xxx.xxx.xxx.12 and the new box is xxx.xxx.xxx.112. As I am only running two sites I just reset them up manually, when I was satisfied that every thing was as similar on both machines as possible I pointed my router to the new ip address and got a strange result.
Straight away the first Virtual Server could be found in a browser and could receive email but the second Virtual Server cannot. The second Virtual Server is set to Default website for IP address.
I did some further investigation and in /etc/apache2/sites-available and in /etc/apache2/sites-enabled is a file 0-2ndvs.com.conf. I copied both and renamed them and restarted apache but no luck the second Virtual Server is still not working. What do I check next.
* Check the address for typing errors such as
ww.example.com instead of
www.example.com
* If you are unable to load any pages, check your computer's network
connection.
* If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.</code>
there is only 1 error message in the files
[Sat Jan 15 07:00:54 2011] [error] [client 60.12.174.20] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
That sounds like some sort of DNS error you’re running into… you may want to plug your domain name into “intodns.com” in order to get a DNS report, they may have some insight into what’s going on and how to fix it.
DNS brakes my brain. But I managed to fix it. For the benefit of others. I looked at “intodns.com” and “network-tools.com” and “kloth.net” and after going back and forth and looking at Webmin> Servers> BIND DNS Server> and selecting the 2ndvs.com I noticed at the bottom of the page a check records button which was in fact more help than the others added together. It said zone
Without reading thru this whole thread, I have a suspicion:
Virtualmin does not create A records for your nameservers, only for the server that is actually hosting the website. If those happen to be one and the same (i.e. if the local hostname/domain of your machine is not externally resolved, but the nameserver sits in the same domain that you are just creating), you need to put in the A record manually via the Webmin BIND module.
Thanks for the response. I read your post http://www.virtualmin.com/node/16072 and it looks like we have set up our servers the same or at least very similarly :). Thanks for the info It fills in some gaps in my understanding of DNS.