<
p>The term <
cite>Virtual Host</
cite> refers to the practice of
running more than one web site (such as
on a single machine. Virtual hosts can be "<
a different IP address for every web site, or "<
a multiple names running on each IP address. The fact that they
are running on the same physical server is not apparent to the
<
p>Apache was one of the first servers to support IP-based
virtual hosts right out of the box. Versions 1.1 and later of
Apache support both IP-based and name-based virtual hosts
(vhosts). The latter variant of virtual hosts is sometimes also
called <
em>host-based</
em> or <
em>non-IP virtual hosts</
em>.</
p>
<
p>Below is a list of documentation pages which explain all
details of virtual host support in Apache version 1.3 and
<
seealso><
module>mod_vhost_alias</
module></
seealso>
<
seealso><
a href="ip-based.html">IP-based virtual hosts</
a></
seealso>
<
seealso><
a href="examples.html">Virtual host examples</
a></
seealso>
<
seealso><
a href="fd-limits.html">File descriptor limits</
a></
seealso>
<
seealso><
a href="mass.html">Mass virtual hosting</
a></
seealso>
<
seealso><
a href="details.html">Detalis of host matching</
a></
seealso>
<
section id="support"><
title>Virtual Host Support</
title>
than one web site per IP address)</
li>
address for each web site)</
li>
<
em>Too many log files</
em>)</
li>
<
li><
a href="mass.html">Dynamically Configured Mass Virtual
<
li><
a href="details.html">In-Depth Discussion of Virtual Host
<
section id="directives"><
title>Configuration directives</
title>
<
li><
directive type="section" module="core">VirtualHost</
directive></
li>
<
li><
directive module="core">NameVirtualHost</
directive></
li>
<
li><
directive module="core">ServerName</
directive></
li>
<
li><
directive module="core">ServerAlias</
directive></
li>
<
li><
directive module="core">ServerPath</
directive></
li>
<
p>If you are trying to debug your virtual host configuration, you
may find the Apache <
code>-t -D DUMP_VHOSTS</
code> command line switch
useful. That is, type the following command:</
p>
<
p>This command will dump out a description of how Apache parsed
the configuration file. Careful examination of the IP addresses and
server names may help uncover configuration mistakes. (See <
a other command line options)</
p>