httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonas Eckerman <jonas_li...@frukt.org>
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 127.0.0.1.

> 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 127.0.0.1).

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
-- 
Jonas Eckerman
Fruktträdet & Förbundet Sveriges Dövblinda
http://www.fsdb.org/
http://www.frukt.org/
http://whatever.frukt.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message