httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Rogers" <>
Subject Re: [users@httpd] Help - Name Server - Maybe
Date Sun, 01 Feb 2009 03:21:53 GMT
Okay I searched for the hosts file in XP but it is not there anywhere!

Here is a section of the httpd.config file that I may have wrong:

# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
# If your host doesn't have a registered DNS name, enter its IP address here.
#ServerName localhost

  From: Razi Khaja 
  Sent: Saturday, January 31, 2009 7:48 PM
  Subject: Re: [users@httpd] Help - Name Server - Maybe

  > 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:

Michael S. Rogers
(406) 967-2385

Web Sites: &
View raw message