Name-Based Virtual Hosts

Name-based virtual hosts enable you to run more than one host on the same IP address. You must add the names to your DNS as CNAMEs of the machine in question. When an HTTP client (web browser) requests a document from your server, it sends with the request a variable indicating the server name from which it’s requesting the document. Based on this variable, the server determines from which of the virtual hosts it should serve content.

Note

Some older browsers cannot properly access name-based virtual hosts because this is a feature of HTTP 1.1 and the older browsers are strictly HTTP 1.0 compliant. However, many other older browsers are partially HTTP 1.1 compliant, and this is one of the parts of HTTP 1.1 that most ...

Get Ubuntu Unleashed 2014 Edition: Covering 13.10 and 14.04,Ninth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.