How to configure multiple websites with Apache web server

Here’s how to host two or more websites on Apache, a popular and powerful web server. With name-based virtual hosting, you can use a single IP address for multiple websites. Modern web servers, including Apache, use the hostname portion of the specified URL to determine which virtual web host responds to the page request. This requires only a little more configuration than for a single site.