97a9a944b5887e91042b019776c41d5dd74557aferikabele<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" />
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive This file is generated from xml source: DO NOT EDIT
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc<title>Apache Virtual Host documentation - Apache HTTP Server Version 2.5</title>
b686b6a420bde7f78c416b90be11db94cb789979nd<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
b686b6a420bde7f78c416b90be11db94cb789979nd<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="/style/css/prettify.css" />
2e545ce2450a9953665f701bb05350f0d3f26275nd<script src="/style/scripts/prettify.min.js" type="text/javascript">
b686b6a420bde7f78c416b90be11db94cb789979nd<link href="/images/favicon.ico" rel="shortcut icon" /></head>
b686b6a420bde7f78c416b90be11db94cb789979nd<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/quickreference.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p>
b686b6a420bde7f78c416b90be11db94cb789979nd<div class="up"><a href="../"><img title="<-" alt="<-" src="/images/left.gif" /></a></div>
b686b6a420bde7f78c416b90be11db94cb789979nd<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.5</a></div><div id="page-content"><div id="preamble"><h1>Apache Virtual Host documentation</h1>
b686b6a420bde7f78c416b90be11db94cb789979nd<p><span>Available Languages: </span><a href="/de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> |
b686b6a420bde7f78c416b90be11db94cb789979nd<a href="/en/vhosts/" title="English"> en </a> |
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd<a href="/fr/vhosts/" hreflang="fr" rel="alternate" title="Fran�ais"> fr </a> |
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<a href="/ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
0066eddda7203f6345b56f77d146a759298dc635gryzor<a href="/ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a> |
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd<a href="/tr/vhosts/" hreflang="tr" rel="alternate" title="T�rk�e"> tr </a> |
f3ec420152ca921e4c1ce77782f51b53f659018dnd<a href="/zh-cn/vhosts/" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p>
b686b6a420bde7f78c416b90be11db94cb789979nd <p>The term <cite>Virtual Host</cite> refers to the practice of
b686b6a420bde7f78c416b90be11db94cb789979nd running more than one web site (such as
b686b6a420bde7f78c416b90be11db94cb789979nd <code>company1.example.com</code> and <code>company2.example.com</code>)
b686b6a420bde7f78c416b90be11db94cb789979nd on a single machine. Virtual hosts can be "<a href="ip-based.html">IP-based</a>", meaning that you have a
b686b6a420bde7f78c416b90be11db94cb789979nd different IP address for every web site, or "<a href="name-based.html">name-based</a>", meaning that you have
b686b6a420bde7f78c416b90be11db94cb789979nd multiple names running on each IP address. The fact that they
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowen are running on the same physical server is not apparent to the
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowen end user.</p>
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf <p>Apache was one of the first servers to support IP-based
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf virtual hosts right out of the box. Versions 1.1 and later of
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowen Apache support both IP-based and name-based virtual hosts
b686b6a420bde7f78c416b90be11db94cb789979nd (vhosts). The latter variant of virtual hosts is sometimes also
b686b6a420bde7f78c416b90be11db94cb789979nd called <em>host-based</em> or <em>non-IP virtual hosts</em>.</p>
b686b6a420bde7f78c416b90be11db94cb789979nd <p>Below is a list of documentation pages which explain all
117c1f888a14e73cdd821dc6c23eb0411144a41cnd details of virtual host support in Apache HTTP Server:</p>
b686b6a420bde7f78c416b90be11db94cb789979nd<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#support">Virtual Host Support</a></li>
b686b6a420bde7f78c416b90be11db94cb789979nd<li><img alt="" src="/images/down.gif" /> <a href="#directives">Configuration directives</a></li>
b686b6a420bde7f78c416b90be11db94cb789979nd</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
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowenhosts</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>
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
b686b6a420bde7f78c416b90be11db94cb789979nd<h2><a name="support" id="support">Virtual Host Support</a></h2>
b686b6a420bde7f78c416b90be11db94cb789979nd <li><a href="name-based.html">Name-based Virtual Hosts</a> (More
b686b6a420bde7f78c416b90be11db94cb789979nd than one web site per IP address)</li>
b686b6a420bde7f78c416b90be11db94cb789979nd <li><a href="ip-based.html">IP-based Virtual Hosts</a> (An IP
b686b6a420bde7f78c416b90be11db94cb789979nd address for each web site)</li>
b686b6a420bde7f78c416b90be11db94cb789979nd <li><a href="examples.html">Virtual Host examples for common
b686b6a420bde7f78c416b90be11db94cb789979nd <li><a href="fd-limits.html">File Descriptor Limits</a> (or,
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowen <li><a href="mass.html">Dynamically Configured Mass Virtual
00e022bc81666634bf78e9f18a8b492baa9607d8humbedooh <li><a href="details.html">In-Depth Discussion of Virtual Host
20f499565e77defe9dab24dd85c02f38a1175855nd</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
b686b6a420bde7f78c416b90be11db94cb789979nd<h2><a name="directives" id="directives">Configuration directives</a></h2>
b686b6a420bde7f78c416b90be11db94cb789979nd <li><code class="directive"><a href="/mod/core.html#virtualhost"><VirtualHost></a></code></li>
b686b6a420bde7f78c416b90be11db94cb789979nd <li><code class="directive"><a href="/mod/core.html#servername">ServerName</a></code></li>
b686b6a420bde7f78c416b90be11db94cb789979nd <li><code class="directive"><a href="/mod/core.html#serveralias">ServerAlias</a></code></li>
7859c11126b92a9ff7ca9ebf9ec0c7dee8ddb70fcovener <li><code class="directive"><a href="/mod/core.html#serverpath">ServerPath</a></code></li>
b686b6a420bde7f78c416b90be11db94cb789979nd <p>If you are trying to debug your virtual host configuration, you
b686b6a420bde7f78c416b90be11db94cb789979nd useful. That is, type the following command:</p>
a99c5d4cc3cab6a62b04d52000dbc22ce1fa2d94coar <p>This command will dump out a description of how Apache parsed
7859c11126b92a9ff7ca9ebf9ec0c7dee8ddb70fcovener the configuration file. Careful examination of the IP addresses and
7859c11126b92a9ff7ca9ebf9ec0c7dee8ddb70fcovener server names may help uncover configuration mistakes. (See
b686b6a420bde7f78c416b90be11db94cb789979nd the docs for the <code class="program"><a href="/programs/httpd.html">httpd</a></code> program for
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener other command line options)</p>
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf<p><span>Available Languages: </span><a href="/de/vhosts/" hreflang="de" rel="alternate" title="Deutsch"> de </a> |
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener<a href="/en/vhosts/" title="English"> en </a> |
6cd2ba3ebab8e247d7047889e8ceab19b7fc08dend<a href="/fr/vhosts/" hreflang="fr" rel="alternate" title="Fran�ais"> fr </a> |
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener<a href="/ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf<a href="/ko/vhosts/" hreflang="ko" rel="alternate" title="Korean"> ko </a> |
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener<a href="/tr/vhosts/" hreflang="tr" rel="alternate" title="T�rk�e"> tr </a> |
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowen<a href="/zh-cn/vhosts/" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p>
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowen<p class="apache">Copyright 2015 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>
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowen<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/quickreference.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
b686b6a420bde7f78c416b90be11db94cb789979ndif (typeof(prettyPrint) !== 'undefined') {
b686b6a420bde7f78c416b90be11db94cb789979nd prettyPrint();