identified virtual hosts?

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

DukeNM wrote:

> how does the virtual host get identified.
> say i have a ip internet ip -> having a dns name
> and in my apache server i want virtual hosting to be done
> say
> so how does this work.
> ie. if i type 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