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.
What problems do you have exactly when your one domain doesn't work? Are you getting some sort of error message in your browser?
Also, do you see any errors in $HOME/logs/error_log for that particular Virtual Server?
-Eric
the browser error is
Server not found
Firefox can't find the server at www.2ndvs.com.
* 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.
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:)
Thanks for your help
Howdy,
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.
-Eric
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
2ndvs.com/IN: NS 'server1.2ndvs.com' has no address records (A or AAAA)
So I created a record
server1.2ndvs.com. IN A xxx.xxx.xxx.xxx
the website began to work immediately and I rechecked the DNS with the tools above and they reported everything was working
Ok to my questions. As virtualmin creates so many other DNS records, shouldn’t it create the record above or have I not put some info some where?
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.
At least that was the case the last time I tried doing that. :) Here's a record of my findings back then: http://www.virtualmin.com/node/16072
Hi Locutus
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.
Allan