Virtual Hosting

One of the more popular services to provide with a Web server is to host a virtual domain, also known as a virtual host. This is a complete Web site with its own domain name, as if it were a standalone machine, but it's hosted on the same machine as other Web sites. Apache implements this capability in a simple way with directives in the httpd.conf configuration file.

A new way to dynamically host virtual servers was recently added. This is enabled using the mod_vhost_alias module. The module is primarily intended for ISPs and similar large sites that host a large number of virtual sites. This is a module for more advanced use, and as such it goes outside the scope of this introductory chapter. Instead, this section concentrates ...

Get Red Hat® Linux® 7 Unleashed 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.