Working with publishing directories, vhosts.d, error documents, directives, and the rewrite rule for virtual hosting with the Apache web server
In this recipe we will learn how to configure publishing directories, vhosts.d
, error documents, directives, and the rewrite rule for virtual hosting with the Apache web server.
If you have followed the previous recipe you will now be in a position to take your virtual hosting one stage further. The management of virtual hosting can be daunting and it is the purpose of this recipe to show you how to maintain a publishing structure, explore the world of virtual hosting, and include as many directives as you need.
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, and that your server supports one or more domains...