On Tuesday 09 April 2002 12:09 pm, abrar hazarika wrote:
> but how does the dns works in this case
> when the browser sends requests for resolving the
> domain name i typed , it gets the ip address, and then
> it should automatically go to the M$ page instead of
> our domain.

Virtual domains are identified by the HTTP Host: header.

So, let us say foo.com and bar.com are hosted on the same IP.
You open browser and type foo.com. The browser connects to the
IP, and sends the following:

GET / HTTP/1.1
Host: foo.com

And the server knows this guy needs the foo.com page. When you type
bar.com, the browser connects to the same IP, but sends:

GET / HTTP/1.1
Host: bar.com

Depending on the Host: header, the server decides on the DocumentRoot
and DirectoryIndex (apache directives :-), and serves that page.

Binand

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to