Apache The Definitive Guide, 3rd EditionApache: The Definitive GuideSearch this book

Chapter 4. Virtual Hosts

Contents:

Two Sites and Apache
Virtual Hosts
Two Copies of Apache
Dynamically Configured Virtual Hosting

4.1. Two Sites and Apache

Our business has now expanded, and we have a team of salespeople. They need their own web site — with different prices, gossip about competitors, conspiracies, plots, plans, and so on — that is separate from the customers' web site we have been talking about. There are essentially two ways of doing this:

  1. Run a single copy of Apache that maintains two or more web sites as virtual sites. This is the most common method.

  2. Run two (or more) copies of Apache, each maintaining a single site. You may want to do this to optimize two versions of Apache in different ways — for instance, one serving images and the other running scripts.



Library Navigation Links

Copyright © 2003 O'Reilly & Associates. All rights reserved.