97a9a944b5887e91042b019776c41d5dd74557aferikabele<?xml version="1.0" encoding="ISO-8859-1"?>
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" />
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd<!--
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive This file is generated from xml source: DO NOT EDIT
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
b686b6a420bde7f78c416b90be11db94cb789979nd -->
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">
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen</script>
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen
b686b6a420bde7f78c416b90be11db94cb789979nd<link href="/images/favicon.ico" rel="shortcut icon" /></head>
b686b6a420bde7f78c416b90be11db94cb789979nd<body id="manual-page"><div id="page-header">
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>
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen<p class="apache">Apache HTTP Server Version 2.5</p>
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<img alt="" src="/images/feather.gif" /></div>
b686b6a420bde7f78c416b90be11db94cb789979nd<div class="up"><a href="../"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
b686b6a420bde7f78c416b90be11db94cb789979nd<div id="path">
b686b6a420bde7f78c416b90be11db94cb789979nd<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.5</a></div><div id="page-content"><div id="preamble"><h1>Apache Virtual Host documentation</h1>
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<div class="toplang">
b686b6a420bde7f78c416b90be11db94cb789979nd<p><span>Available Languages: </span><a href="/de/vhosts/" hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |
b686b6a420bde7f78c416b90be11db94cb789979nd<a href="/en/vhosts/" title="English">&nbsp;en&nbsp;</a> |
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd<a href="/fr/vhosts/" hreflang="fr" rel="alternate" title="Fran�ais">&nbsp;fr&nbsp;</a> |
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<a href="/ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
0066eddda7203f6345b56f77d146a759298dc635gryzor<a href="/ko/vhosts/" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd<a href="/tr/vhosts/" hreflang="tr" rel="alternate" title="T�rk�e">&nbsp;tr&nbsp;</a> |
f3ec420152ca921e4c1ce77782f51b53f659018dnd<a href="/zh-cn/vhosts/" hreflang="zh-cn" rel="alternate" title="Simplified Chinese">&nbsp;zh-cn&nbsp;</a></p>
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung</div>
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd
b686b6a420bde7f78c416b90be11db94cb789979nd
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>
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowen
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
b686b6a420bde7f78c416b90be11db94cb789979nd <p>Below is a list of documentation pages which explain all
117c1f888a14e73cdd821dc6c23eb0411144a41cnd details of virtual host support in Apache HTTP Server:</p>
117c1f888a14e73cdd821dc6c23eb0411144a41cnd
b686b6a420bde7f78c416b90be11db94cb789979nd</div>
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>
1f1b6bf13313fdd14a45e52e553d3ff28689b717coar<div class="section">
b686b6a420bde7f78c416b90be11db94cb789979nd<h2><a name="support" id="support">Virtual Host Support</a></h2>
b686b6a420bde7f78c416b90be11db94cb789979nd
b686b6a420bde7f78c416b90be11db94cb789979nd <ul>
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 setups</a></li>
b686b6a420bde7f78c416b90be11db94cb789979nd <li><a href="fd-limits.html">File Descriptor Limits</a> (or,
b686b6a420bde7f78c416b90be11db94cb789979nd <em>Too many log files</em>)</li>
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowen <li><a href="mass.html">Dynamically Configured Mass Virtual
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowen Hosting</a></li>
00e022bc81666634bf78e9f18a8b492baa9607d8humbedooh <li><a href="details.html">In-Depth Discussion of Virtual Host
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf Matching</a></li>
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowen </ul>
e55e60efce8a3e2139132c1d6ad9f6f0d2976614nd
20f499565e77defe9dab24dd85c02f38a1175855nd</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
e487d6c09669296f94a5190cc34586a98e624a00nd<div class="section">
b686b6a420bde7f78c416b90be11db94cb789979nd<h2><a name="directives" id="directives">Configuration directives</a></h2>
b686b6a420bde7f78c416b90be11db94cb789979nd
b686b6a420bde7f78c416b90be11db94cb789979nd <ul>
b686b6a420bde7f78c416b90be11db94cb789979nd <li><code class="directive"><a href="/mod/core.html#virtualhost">&lt;VirtualHost&gt;</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 </ul>
b686b6a420bde7f78c416b90be11db94cb789979nd
b686b6a420bde7f78c416b90be11db94cb789979nd <p>If you are trying to debug your virtual host configuration, you
b686b6a420bde7f78c416b90be11db94cb789979nd may find the Apache <code>-S</code> command line switch
b686b6a420bde7f78c416b90be11db94cb789979nd useful. That is, type the following command:</p>
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowen <div class="example"><p><code>
e55e60efce8a3e2139132c1d6ad9f6f0d2976614nd /usr/local/apache2/bin/httpd -S
20f499565e77defe9dab24dd85c02f38a1175855nd </code></p></div>
e487d6c09669296f94a5190cc34586a98e624a00nd
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>
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener</div></div>
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener<div class="bottomlang">
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf<p><span>Available Languages: </span><a href="/de/vhosts/" hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener<a href="/en/vhosts/" title="English">&nbsp;en&nbsp;</a> |
6cd2ba3ebab8e247d7047889e8ceab19b7fc08dend<a href="/fr/vhosts/" hreflang="fr" rel="alternate" title="Fran�ais">&nbsp;fr&nbsp;</a> |
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener<a href="/ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf<a href="/ko/vhosts/" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener<a href="/tr/vhosts/" hreflang="tr" rel="alternate" title="T�rk�e">&nbsp;tr&nbsp;</a> |
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowen<a href="/zh-cn/vhosts/" hreflang="zh-cn" rel="alternate" title="Simplified Chinese">&nbsp;zh-cn&nbsp;</a></p>
fd09dcc9b954fde7abde7955af4ba9a094d34d50rbowen</div><div id="footer">
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();
b686b6a420bde7f78c416b90be11db94cb789979nd}
b686b6a420bde7f78c416b90be11db94cb789979nd//--><!]]></script>
b686b6a420bde7f78c416b90be11db94cb789979nd</body></html>