httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonas Eckerman <>
Subject Re: [users@httpd] beginner problem in setting up apache2
Date Wed, 14 Jul 2010 16:51:39 GMT
On 2010-07-14 17:41, Tapas Mishra wrote:

> how is localhost hooked up

Usually the hostname "localhost" is resolved through the "hosts" file
(/etc/hosts on unix-like systems), and then resolves to

> because when I am requesting
> http://localhost I am not requesting any  particular vhost which
> contains
> ServerName localhost or ServerAlias localhost.

Yes you are. You are requesting pages from the host called "localhost"
at port 80 at the IP address "localhost" resolves to (normally

If there is no host with servername or serveralias "localhost" at that
address you will get a response from the default host at that address.

Jonas Eckerman
Fruktträdet & Förbundet Sveriges Dövblinda

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