Configuring Apache name-based virtual hosting

In this recipe we will learn how to configure name-based virtual hosting on the Apache web server.

In a previous recipe you were shown how to install the Apache web server, and where there are enormous advantages to be gained from name-based virtual hosting, it is the purpose of this recipe to show you how to enhance your current server configuration by showing you how to extend the features of the Apache web server.

Getting ready

To complete this recipe you will require a working installation of the CentOS 6 operating system with root privileges and a console based text editor of your choice. It is expected that your server will be using a static IP address and Apache is installed and currently running, ...

Get CentOS 6 Linux Server Cookbook 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.