index.html.en revision 22a41ae508535e87c3c2270202ae78de6ac4672c
fefb8b844b6286bfc41bb2e0c4cc003b8e7d4ff2kess<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
fefb8b844b6286bfc41bb2e0c4cc003b8e7d4ff2kess<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
fefb8b844b6286bfc41bb2e0c4cc003b8e7d4ff2kess XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
fefb8b844b6286bfc41bb2e0c4cc003b8e7d4ff2kess This file is generated from xml source: DO NOT EDIT
fefb8b844b6286bfc41bb2e0c4cc003b8e7d4ff2kess XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5a58787efeb02a1c3f06569d019ad81fd2efa06end<title>Apache Virtual Host documentation - Apache HTTP Server</title>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
5a58787efeb02a1c3f06569d019ad81fd2efa06end<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
5a58787efeb02a1c3f06569d019ad81fd2efa06end<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
5a58787efeb02a1c3f06569d019ad81fd2efa06end<link href="/images/favicon.ico" rel="shortcut icon" /></head>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<div class="up"><a href="../"><img title="<-" alt="<-" src="/images/left.gif" /></a></div>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs-project/">Documentation</a> > <a href="../">Version 2.1</a></div><div id="page-content"><div id="preamble"><h1>Apache Virtual Host documentation</h1>
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<p><span>Available Languages: </span><a href="/de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> |
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<a href="/en/vhosts/" title="English"> en </a> |
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<a href="/ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<a href="/ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
2eaf662cbc81e823e8d9aeb8d54e69e63032493erbowen <p>The term <cite>Virtual Host</cite> refers to the practice of
10ca15b877e1d7f36b5d4ccd0a38e984cd635da4rbowen running more than one web site (such as
fefb8b844b6286bfc41bb2e0c4cc003b8e7d4ff2kess <code>www.company1.com</code> and <code>www.company2.com</code>)
0e13d2a04f8c7cb647556e890bb69d5789a31ce1nd on a single machine. Virtual hosts can be "<a href="ip-based.html">IP-based</a>", meaning that you have a
0e13d2a04f8c7cb647556e890bb69d5789a31ce1nd different IP address for every web site, or "<a href="name-based.html">name-based</a>", meaning that you have
2bd55c0d474884fe40c4a081efcbd82bc1c913a8rbowen multiple names running on each IP address. The fact that they
b21197dc8e6b8c764fdcc24d4bae8b0eebb6bc4end are running on the same physical server is not apparent to the
2bd55c0d474884fe40c4a081efcbd82bc1c913a8rbowen end user.</p>
2eaf662cbc81e823e8d9aeb8d54e69e63032493erbowen <p>Apache was one of the first servers to support IP-based
2eaf662cbc81e823e8d9aeb8d54e69e63032493erbowen virtual hosts right out of the box. Versions 1.1 and later of
10ca15b877e1d7f36b5d4ccd0a38e984cd635da4rbowen Apache support both IP-based and name-based virtual hosts
2eaf662cbc81e823e8d9aeb8d54e69e63032493erbowen (vhosts). The latter variant of virtual hosts is sometimes also
10ca15b877e1d7f36b5d4ccd0a38e984cd635da4rbowen called <em>host-based</em> or <em>non-IP virtual hosts</em>.</p>
2eaf662cbc81e823e8d9aeb8d54e69e63032493erbowen <p>Below is a list of documentation pages which explain all
2eaf662cbc81e823e8d9aeb8d54e69e63032493erbowen details of virtual host support in Apache version 1.3 and
5a58787efeb02a1c3f06569d019ad81fd2efa06end<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#support">Virtual Host Support</a></li>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<li><img alt="" src="/images/down.gif" /> <a href="#directives">Configuration directives</a></li>
be809bbd44119f26f27a701f6912d21f334d85ffrbowen</ul><h3>See also</h3><ul class="seealso"><li><code class="module"><a href="/mod/mod_vhost_alias.html">mod_vhost_alias</a></code></li><li><a href="name-based.html">Name-based virtual
ae89c529be7bde57cc051ec8f85da6fddd502926erikabelehosts</a></li><li><a href="ip-based.html">IP-based virtual hosts</a></li><li><a href="examples.html">Virtual host examples</a></li><li><a href="fd-limits.html">File descriptor limits</a></li><li><a href="mass.html">Mass virtual hosting</a></li><li><a href="details.html">Details of host matching</a></li></ul></div>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<h2><a name="support" id="support">Virtual Host Support</a></h2>
2bd55c0d474884fe40c4a081efcbd82bc1c913a8rbowen <li><a href="name-based.html">Name-based Virtual Hosts</a> (More
2bd55c0d474884fe40c4a081efcbd82bc1c913a8rbowen than one web site per IP address)</li>
10ca15b877e1d7f36b5d4ccd0a38e984cd635da4rbowen <li><a href="ip-based.html">IP-based Virtual Hosts</a> (An IP
10ca15b877e1d7f36b5d4ccd0a38e984cd635da4rbowen address for each web site)</li>
fefb8b844b6286bfc41bb2e0c4cc003b8e7d4ff2kess <li><a href="examples.html">Virtual Host examples for common
48160cfe05c7614376dc7b1f57f5493eb73f06dbrbowen <li><a href="fd-limits.html">File Descriptor Limits</a> (or,
2eaf662cbc81e823e8d9aeb8d54e69e63032493erbowen <li><a href="mass.html">Dynamically Configured Mass Virtual
fefb8b844b6286bfc41bb2e0c4cc003b8e7d4ff2kess <li><a href="details.html">In-Depth Discussion of Virtual Host
5a58787efeb02a1c3f06569d019ad81fd2efa06end</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<h2><a name="directives" id="directives">Configuration directives</a></h2>
fefb8b844b6286bfc41bb2e0c4cc003b8e7d4ff2kess <li><code class="directive"><a href="/mod/core.html#virtualhost"><VirtualHost></a></code></li>
fefb8b844b6286bfc41bb2e0c4cc003b8e7d4ff2kess <li><code class="directive"><a href="/mod/core.html#namevirtualhost">NameVirtualHost</a></code></li>
fefb8b844b6286bfc41bb2e0c4cc003b8e7d4ff2kess <li><code class="directive"><a href="/mod/core.html#servername">ServerName</a></code></li>
fefb8b844b6286bfc41bb2e0c4cc003b8e7d4ff2kess <li><code class="directive"><a href="/mod/core.html#serveralias">ServerAlias</a></code></li>
fefb8b844b6286bfc41bb2e0c4cc003b8e7d4ff2kess <li><code class="directive"><a href="/mod/core.html#serverpath">ServerPath</a></code></li>
48160cfe05c7614376dc7b1f57f5493eb73f06dbrbowen <p>If you are trying to debug your virtual host configuration, you
b55e805b1e1f5258452901038edc7097056eba7eerikabele may find the Apache <code>-S</code> command line switch
48160cfe05c7614376dc7b1f57f5493eb73f06dbrbowen useful. That is, type the following command:</p>
48160cfe05c7614376dc7b1f57f5493eb73f06dbrbowen <p>This command will dump out a description of how Apache parsed
48160cfe05c7614376dc7b1f57f5493eb73f06dbrbowen the configuration file. Careful examination of the IP addresses and
9bcfc3697a91b5215893a7d0206865b13fc72148nd server names may help uncover configuration mistakes. (See
9bcfc3697a91b5215893a7d0206865b13fc72148nd the docs for the <code class="program"><a href="/programs/httpd.html">httpd</a></code> program for
48160cfe05c7614376dc7b1f57f5493eb73f06dbrbowen other command line options)</p>
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<p><span>Available Languages: </span><a href="/de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> |
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<a href="/en/vhosts/" title="English"> en </a> |
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<a href="/ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<a href="/ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
b95ae799514ad86a15610ad75808d7065e9847c9kess<p class="apache">Copyright 1995-2005 The Apache Software Foundation or its licensors, as applicable.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p></div>