---

Apache Today: Apache Guide: Setting Up Virtual Hosts

[ Thanks to Kevin
Reichard
for this link. ]

Virtual hosts let you run more than one Web site on the
same server. In this article, I’ll show you how to set up your
server to run virtual hosts….

“It’s this trick that lets me run several Web sites on my home
machine, from a variety of different domain names, and several
names within one domain, so that my one little machine behind my
DSL link looks like a room full of servers. Neat trick.”

“Well, you probably already have some ideas in mind. But here’s
how I generally use virtual hosts. I work for a Web-design company,
and when we’re developing a customer site, we set up a virtual host
specially for that company. These are usually name-based, since
these are faster to set up (one step shorter), and are almost
always internal only. That is, the names are put into our internal
DNS, so that internal hosts can see the Web sites, but external
browsers see only the boring, featureless external page on our
development server.”

Complete
Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis