httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Razi Khaja <>
Subject Re: [users@httpd] Help - Name Server - Maybe
Date Sun, 01 Feb 2009 02:48:17 GMT
> For the last 6 months I have fiddled around trying to make Apache connect to
> the web or the web connect to Apache.  It does just fine on my home network
> when I type in localhost!  But if I type in it
> doesn't work.
> The address above is associated with the name server
> and the Apache is on my home computer.  I am
> running XP Home SP3, and there a router between me, and the web.

On windows, search for a file called hosts, it should be in a place
like C:\system32\drivers\etc\hosts (I dont have a windows box so Im
not sure if this is exactly where to find it).

The contents of the hosts file should look like:       localhost

This says that that 'localhost' is an alias for the IP number

You will want to create another entry in this file that also points to
the IP number, so that your your file looks like:       localhost

You might also want to include  (in case you ever want to type the
URL without the www).

Alternatively, you can put all of this on one line:       localhost

The thing to note about this hack is that your name server is never
contacted in order to do the IP to domain name translation.
This should allow you to see your website, hosted on your home
computer, from home, using your domain name rather than localhost.
Hope that helps.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message