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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access