glenelkins Posted January 5, 2007 Share Posted January 5, 2007 HiI have a windows dedicated server running apache as a service.Lets say the server IPs are209.25.285.55209.25.285.56I have setup host records on the domain (say "test.com") as:ns1.test.com -> 209.25.285.55ns2.test.com -> 209.25.285.56and chaned the name servers tons1.test.comns2.test.comHTTPD.CONF now setsServerName localhostListen 80 -> all Ips on port 80and windows HOSTS127.0.0.1 localhost209.25.285.55 localhost209.25.285.56 localhostIf i goto http://localhost or http://ipaddress it works fine. But when trying to access through the domain www.test.com or test.com the page cannot be found. I have no virtual hosts setup, any ideas why this is not working?I have just setup the following virtual hostsNameVirtualHost *:80<VirtualHost *:80> ServerName ns1.test.com DocumentRoot C:/WebServer/www</VirtualHost><VirtualHost *:80> ServerName ns2.test.com DocumentRoot C:/WebServer/www</VirtualHost>If I then goto http://ns1.test.com the site shows but not with http://test.com ?? Quote Link to comment https://forums.phpfreaks.com/topic/32959-domain-does-not-work/ Share on other sites More sharing options...
glenelkins Posted January 5, 2007 Author Share Posted January 5, 2007 Im thinking its perhaps the name servers on the actual domain. They have not updated when I do a whois search ?? Quote Link to comment https://forums.phpfreaks.com/topic/32959-domain-does-not-work/#findComment-153481 Share on other sites More sharing options...
glenelkins Posted January 5, 2007 Author Share Posted January 5, 2007 welll waiting for the nameservers didnt work. how come it works for ns1.test.com and ns2.test.com but not test.com Quote Link to comment https://forums.phpfreaks.com/topic/32959-domain-does-not-work/#findComment-153521 Share on other sites More sharing options...
glenelkins Posted January 5, 2007 Author Share Posted January 5, 2007 why doesnt anyone answer in this forum? Quote Link to comment https://forums.phpfreaks.com/topic/32959-domain-does-not-work/#findComment-153582 Share on other sites More sharing options...
Stray_Bullet Posted January 5, 2007 Share Posted January 5, 2007 Well from what I see...You do not have a vhost setup for test.com... Just ns1.test.com & ns2.test.com...We don't have much to work with here... :-\ Quote Link to comment https://forums.phpfreaks.com/topic/32959-domain-does-not-work/#findComment-153862 Share on other sites More sharing options...
the_oliver Posted January 6, 2007 Share Posted January 6, 2007 why are you using ns1 and ns2 to point to an apache server? These would inply they are the DNS server for this domin? If you are running the dedicated server as you DNS server having them both point to the same box compleatly defies the point. Are you just trying to set up a web server, with works on whatever.com?You really have given us nothing clear to go on.Also using test.com with our a pretext to it (say www. or ns1. or whatever.) requires a diffrent type of record. (i asume you have writen a standard A-record for the others). Where are these host records? If you need a change to the whois poll then the ns servers need to be changed by the registra, or owner is purchaced direct from a TLD. Quote Link to comment https://forums.phpfreaks.com/topic/32959-domain-does-not-work/#findComment-153916 Share on other sites More sharing options...
glenelkins Posted January 6, 2007 Author Share Posted January 6, 2007 HiOk so I have a dedicated server which I have installed apache. It can be accessed currently using one or both of the servers IP addresses. What I mean by ns1.test.com ns2.test.com (sample domain because Im not giving out the real details) is thats the name servers I point the domain to. I added a host record for this with ukreg (domain registrar) how else am I supposed to point the domain to the server?? Ukreg wont allow IP addresses in domain name servers Quote Link to comment https://forums.phpfreaks.com/topic/32959-domain-does-not-work/#findComment-154143 Share on other sites More sharing options...
Ninjakreborn Posted January 8, 2007 Share Posted January 8, 2007 I am having problems with the same thing, I got one to work, adn the other won't it has something to do with aliases, but I still can't figure out what, I have been playing with it all day. Quote Link to comment https://forums.phpfreaks.com/topic/32959-domain-does-not-work/#findComment-156079 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.