identified virtual hosts?

Kevin Darcy kcd at daimlerchrysler.com
Fri Jan 10 23:05:05 UTC 2003


DukeNM wrote:

> how does the virtual host get identified.
>
> say i have a ip internet ip -> 202.123.45.2 having a dns name www.hot.com
>
> and in my apache server i want virtual hosting to be done
>
> say www.hot1.com
>     www.hot2.com
>
> so how does this work.
>
> ie. if i type www.hot2.com in my browser so how does this get linked to the server

In DNS terms, you'd have one or more A records pointing to the webserver's address
and/or one or more CNAME records pointing at that/those A records. Between the
HTTP client and the HTTP server, there's a "Host:" header which allows the web server
to distinguish between "virtual hosts", if properly configured to do so.


- Kevin




More information about the bind-users mailing list