mirror of
https://github.com/apache/httpd.git
synced 2025-10-22 23:12:44 +03:00
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96194 13f79535-47bb-0310-9956-ffa450edef68
98 lines
3.5 KiB
Plaintext
98 lines
3.5 KiB
Plaintext
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta name="generator" content="HTML Tidy, see www.w3.org" />
|
|
|
|
<title>Apache Virtual Host documentation</title>
|
|
</head>
|
|
<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
|
|
|
|
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF"
|
|
vlink="#000080" alink="#FF0000">
|
|
<!--#include virtual="header.html" -->
|
|
|
|
<h1 align="center">Apache Virtual Host documentation</h1>
|
|
|
|
<p>The term <cite>Virtual Host</cite> refers to the practice of
|
|
running more than one web site (such as
|
|
<samp>www.company1.com</samp> and <samp>www.company2.com</samp>)
|
|
on a single machine. Virtual hosts can be "<a
|
|
href="ip-based.html">IP-based</a>," meaning that you have a
|
|
different IP address for every web site, or "<a
|
|
href="name-based.html">name-based</a>," meaning that you have
|
|
multiple names running on a single IP address. The fact that they
|
|
are running on the same server is not apparent to the end user.</p>
|
|
|
|
<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
|
|
later.</p>
|
|
<hr />
|
|
|
|
<h2>Virtual Host Support</h2>
|
|
|
|
<ul>
|
|
<li><a href="name-based.html">Name-based Virtual Hosts</a> (One IP
|
|
address, multiple web sites)</li>
|
|
|
|
<li><a href="ip-based.html">IP-based Virtual Hosts</a> (An IP
|
|
address for each web site)</li>
|
|
|
|
<li><a href="examples.html">Virtual Host examples for common
|
|
setups</a></li>
|
|
|
|
<li><a href="fd-limits.html">File Descriptor Limits</a> (or,
|
|
<em>Too many log files</em>)</li>
|
|
|
|
<li><a href="mass.html">Dynamically Configured Mass Virtual
|
|
Hosting</a></li>
|
|
|
|
<li><a href="details.html">In-Depth Discussion of Virtual Host
|
|
Matching</a></li>
|
|
</ul>
|
|
|
|
<h2>Configuration directives</h2>
|
|
|
|
<ul>
|
|
<li><a
|
|
href="../mod/core.html#virtualhost"><VirtualHost></a></li>
|
|
|
|
<li><a
|
|
href="../mod/core.html#namevirtualhost">NameVirtualHost</a></li>
|
|
|
|
<li><a href="../mod/core.html#servername">ServerName</a></li>
|
|
|
|
<li><a href="../mod/core.html#serveralias">ServerAlias</a></li>
|
|
|
|
<li><a href="../mod/core.html#serverpath">ServerPath</a></li>
|
|
|
|
<li><b>See also</b> <a
|
|
href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></li>
|
|
</ul>
|
|
|
|
<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>
|
|
|
|
<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
|
|
/usr/local/apache/bin/httpd -t -D DUMP_VHOSTS
|
|
</code></td></tr></table></blockquote>
|
|
|
|
<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
|
|
href="../programs/httpd.html">the docs for the httpd program</a> for
|
|
other command line options)</p>
|
|
|
|
<!--#include virtual="footer.html" -->
|
|
</body>
|
|
</html>
|
|
|