identified virtual hosts?
kcd at daimlerchrysler.com
Fri Jan 10 23:05:05 UTC 2003
> how does the virtual host get identified.
> say i have a ip internet ip -> 220.127.116.11 having a dns name www.hot.com
> and in my apache server i want virtual hosting to be done
> say www.hot1.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.
More information about the bind-users