index.html.en revision cbd85610a1f833f3df81987f0b639b1e101e90da
d24d4c5159bcb11c25bb294926cfe7105c789ea9slive<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
e942c741056732f50da2074b36fe59805d370650slive<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
7db9f691a00ead175b03335457ca296a33ddf31bnd XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive This file is generated from xml source: DO NOT EDIT
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<title>Apache Virtual Host documentation - Apache HTTP Server</title>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<link href="/images/favicon.ico" rel="shortcut icon" /></head>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<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>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<div class="up"><a href="../"><img title="<-" alt="<-" src="/images/left.gif" /></a></div>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.3</a></div><div id="page-content"><div id="preamble"><h1>Apache Virtual Host documentation</h1>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<p><span>Available Languages: </span><a href="/de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> |
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<a href="/en/vhosts/" title="English"> en </a> |
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<a href="/fr/vhosts/" hreflang="fr" rel="alternate" title="Fran�ais"> fr </a> |
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<a href="/ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
67a715b4352c3e25bff32fccad48350180393f5end<a href="/ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a> |
67a715b4352c3e25bff32fccad48350180393f5end<a href="/tr/vhosts/" hreflang="tr" rel="alternate" title="T�rk�e"> tr </a></p>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive <p>The term <cite>Virtual Host</cite> refers to the practice of
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive running more than one web site (such as
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive <code>www.company1.com</code> and <code>www.company2.com</code>)
67a715b4352c3e25bff32fccad48350180393f5end on a single machine. Virtual hosts can be "<a href="ip-based.html">IP-based</a>", meaning that you have a
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive different IP address for every web site, or "<a href="name-based.html">name-based</a>", meaning that you have
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive multiple names running on each IP address. The fact that they
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive are running on the same physical server is not apparent to the
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive end user.</p>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive <p>Apache was one of the first servers to support IP-based
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive virtual hosts right out of the box. Versions 1.1 and later of
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive Apache support both IP-based and name-based virtual hosts
67a715b4352c3e25bff32fccad48350180393f5end (vhosts). The latter variant of virtual hosts is sometimes also
67a715b4352c3e25bff32fccad48350180393f5end called <em>host-based</em> or <em>non-IP virtual hosts</em>.</p>
4a70643d125a450bb3f611c1265e44607b140040gregames <p>Below is a list of documentation pages which explain all
217246fb83555fa4dfc1d791758a93ec4230f5bfslive details of virtual host support in Apache HTTP Server:</p>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#support">Virtual Host Support</a></li>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<li><img alt="" src="/images/down.gif" /> <a href="#directives">Configuration directives</a></li>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive</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
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslivehosts</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>
67a715b4352c3e25bff32fccad48350180393f5end<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
67a715b4352c3e25bff32fccad48350180393f5end<h2><a name="support" id="support">Virtual Host Support</a></h2>
67a715b4352c3e25bff32fccad48350180393f5end <li><a href="name-based.html">Name-based Virtual Hosts</a> (More
67a715b4352c3e25bff32fccad48350180393f5end than one web site per IP address)</li>
67a715b4352c3e25bff32fccad48350180393f5end <li><a href="ip-based.html">IP-based Virtual Hosts</a> (An IP
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive address for each web site)</li>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive <li><a href="examples.html">Virtual Host examples for common
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive <li><a href="fd-limits.html">File Descriptor Limits</a> (or,
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive <li><a href="mass.html">Dynamically Configured Mass Virtual
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive <li><a href="details.html">In-Depth Discussion of Virtual Host
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<h2><a name="directives" id="directives">Configuration directives</a></h2>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive <li><code class="directive"><a href="/mod/core.html#virtualhost"><VirtualHost></a></code></li>
f80e267f416eda70d74550e77b11bdc42ecd104dnd <li><code class="directive"><a href="/mod/core.html#namevirtualhost">NameVirtualHost</a></code></li>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive <li><code class="directive"><a href="/mod/core.html#servername">ServerName</a></code></li>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive <li><code class="directive"><a href="/mod/core.html#serveralias">ServerAlias</a></code></li>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive <li><code class="directive"><a href="/mod/core.html#serverpath">ServerPath</a></code></li>
67a715b4352c3e25bff32fccad48350180393f5end <p>If you are trying to debug your virtual host configuration, you
217246fb83555fa4dfc1d791758a93ec4230f5bfslive useful. That is, type the following command:</p>
67a715b4352c3e25bff32fccad48350180393f5end <p>This command will dump out a description of how Apache parsed
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive the configuration file. Careful examination of the IP addresses and
67a715b4352c3e25bff32fccad48350180393f5end server names may help uncover configuration mistakes. (See
67a715b4352c3e25bff32fccad48350180393f5end the docs for the <code class="program"><a href="/programs/httpd.html">httpd</a></code> program for
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive other command line options)</p>
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<p><span>Available Languages: </span><a href="/de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> |
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<a href="/en/vhosts/" title="English"> en </a> |
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<a href="/fr/vhosts/" hreflang="fr" rel="alternate" title="Fran�ais"> fr </a> |
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<a href="/ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<a href="/ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a> |
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive<a href="/tr/vhosts/" hreflang="tr" rel="alternate" title="T�rk�e"> tr </a></p>
67a715b4352c3e25bff32fccad48350180393f5end<p class="apache">Copyright 2010 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
67a715b4352c3e25bff32fccad48350180393f5end<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>