Jump to content

domain does not work


glenelkins

Recommended Posts

Hi

I have a windows dedicated server running apache as a service.

Lets say the server IPs are

209.25.285.55
209.25.285.56

I have setup host records on the domain (say "test.com") as:

ns1.test.com -> 209.25.285.55
ns2.test.com -> 209.25.285.56

and chaned the name servers to

ns1.test.com
ns2.test.com


HTTPD.CONF now sets

ServerName localhost
Listen 80  -> all Ips on port 80

and windows HOSTS

127.0.0.1 localhost
209.25.285.55 localhost
209.25.285.56 localhost

If 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 hosts

NameVirtualHost *: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 ??
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

Hi

Ok 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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.