Virtual servers

Apache has the capability to support multiple sites from the same server instance. This gives great flexibility, and at the same time, ease of management. This flexibility is known as virtual hosting. There are three basic ways of running virtual hosting with Apache:


This uses different names for each site and a common IP address, probably the most popular form of virtual hosting


This uses a different IP address for each site


This uses individual port numbers for each site

We will look at all three of the methods and configurations within the httpd.conf required to implement each method.


Name-based virtual hosting has been made possible with the introduction of HTTP protocol version ...

Get Learning RHEL Networking now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.