index.html.en revision 5b10fd3977e6dfff19afe770e612e276962f7950
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">
97a9a944b5887e91042b019776c41d5dd74557aferikabele<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive This file is generated from xml source: DO NOT EDIT
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
b686b6a420bde7f78c416b90be11db94cb789979nd -->
b686b6a420bde7f78c416b90be11db94cb789979nd<title>Apache Virtual Host documentation - Apache HTTP Server</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" />
b686b6a420bde7f78c416b90be11db94cb789979nd<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
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/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p>
52fff662005b1866a3ff09bb6c902800c5cc6dedjerenkrantz<p class="apache">Apache HTTP Server Version 2.1</p>
b686b6a420bde7f78c416b90be11db94cb789979nd<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">
4b5981e276e93df97c34e4da05ca5cf8bbd937dand<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-project/">Documentation</a> &gt; <a href="../">Version 2.1</a></div><div id="page-content"><div id="preamble"><h1>Apache Virtual Host documentation</h1>
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd<div class="toplang">
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<p><span>Available Languages: </span><a href="/de/vhosts/" hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<a href="/en/vhosts/" title="English">&nbsp;en&nbsp;</a> |
b05ab3ff5ab54aa22610b13d56eaba6ddfc3db60nd<a href="/ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd<a href="/ko/vhosts/" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end</div>
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd
b686b6a420bde7f78c416b90be11db94cb789979nd <p>The term <cite>Virtual Host</cite> refers to the practice of
06ba4a61654b3763ad65f52283832ebf058fdf1cslive running more than one web site (such as
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <code>www.company1.com</code> and <code>www.company2.com</code>)
06ba4a61654b3763ad65f52283832ebf058fdf1cslive on a single machine. Virtual hosts can be "<a href="ip-based.html">IP-based</a>", meaning that you have a
06ba4a61654b3763ad65f52283832ebf058fdf1cslive different IP address for every web site, or "<a href="name-based.html">name-based</a>", meaning that you have
06ba4a61654b3763ad65f52283832ebf058fdf1cslive multiple names running on each IP address. The fact that they
06ba4a61654b3763ad65f52283832ebf058fdf1cslive are running on the same physical server is not apparent to the
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd end user.</p>
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd
5b10fd3977e6dfff19afe770e612e276962f7950nd <p>Apache was one of the first servers to support IP-based
5b10fd3977e6dfff19afe770e612e276962f7950nd virtual hosts right out of the box. Versions 1.1 and later of
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd Apache support both IP-based and name-based virtual hosts
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd (vhosts). The latter variant of virtual hosts is sometimes also
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd called <em>host-based</em> or <em>non-IP virtual hosts</em>.</p>
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd <p>Below is a list of documentation pages which explain all
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd details of virtual host support in Apache version 1.3 and
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd later.</p>
5b10fd3977e6dfff19afe770e612e276962f7950nd
5b10fd3977e6dfff19afe770e612e276962f7950nd</div>
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#support">Virtual Host Support</a></li>
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd<li><img alt="" src="/images/down.gif" /> <a href="#directives">Configuration directives</a></li>
2aff288113d772cedca6add888eb643afffe9fb1nd</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
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2ndhosts</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>
2aff288113d772cedca6add888eb643afffe9fb1nd<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd<div class="section">
7fa75a06a4fee19e995c069ee00310455d1452e1pquerna<h2><a name="support" id="support">Virtual Host Support</a></h2>
7fa75a06a4fee19e995c069ee00310455d1452e1pquerna
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd <ul>
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd <li><a href="name-based.html">Name-based Virtual Hosts</a> (More
2aff288113d772cedca6add888eb643afffe9fb1nd than one web site per IP address)</li>
2aff288113d772cedca6add888eb643afffe9fb1nd <li><a href="ip-based.html">IP-based Virtual Hosts</a> (An IP
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd address for each web site)</li>
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd <li><a href="examples.html">Virtual Host examples for common
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd setups</a></li>
2aff288113d772cedca6add888eb643afffe9fb1nd <li><a href="fd-limits.html">File Descriptor Limits</a> (or,
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd <em>Too many log files</em>)</li>
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd <li><a href="mass.html">Dynamically Configured Mass Virtual
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd Hosting</a></li>
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd <li><a href="details.html">In-Depth Discussion of Virtual Host
2aff288113d772cedca6add888eb643afffe9fb1nd Matching</a></li>
2aff288113d772cedca6add888eb643afffe9fb1nd </ul>
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd<div class="section">
db99fa79ac42b9cc42b63386eb289aecb0f3cb9cnd<h2><a name="directives" id="directives">Configuration directives</a></h2>
7ec4d5cc4aa574e3191bc5a612e68fd8f25ab7earpluem
7ec4d5cc4aa574e3191bc5a612e68fd8f25ab7earpluem <ul>
7ec4d5cc4aa574e3191bc5a612e68fd8f25ab7earpluem <li><code class="directive"><a href="/mod/core.html#virtualhost">&lt;VirtualHost&gt;</a></code></li>
2aff288113d772cedca6add888eb643afffe9fb1nd <li><code class="directive"><a href="/mod/core.html#namevirtualhost">NameVirtualHost</a></code></li>
2aff288113d772cedca6add888eb643afffe9fb1nd <li><code class="directive"><a href="/mod/core.html#servername">ServerName</a></code></li>
2aff288113d772cedca6add888eb643afffe9fb1nd <li><code class="directive"><a href="/mod/core.html#serveralias">ServerAlias</a></code></li>
2aff288113d772cedca6add888eb643afffe9fb1nd <li><code class="directive"><a href="/mod/core.html#serverpath">ServerPath</a></code></li>
2aff288113d772cedca6add888eb643afffe9fb1nd </ul>
2aff288113d772cedca6add888eb643afffe9fb1nd
2aff288113d772cedca6add888eb643afffe9fb1nd <p>If you are trying to debug your virtual host configuration, you
635e08c1d8332adc365b1c20bbe3577d59ebcd78kess may find the Apache <code>-S</code> command line switch
d9b843d090f14405079b4a61a493316cd3f1e5b9minfrin useful. That is, type the following command:</p>
2aff288113d772cedca6add888eb643afffe9fb1nd
2aff288113d772cedca6add888eb643afffe9fb1nd <div class="example"><p><code>
8951c7d73bfa2ae5a2c8fe5bd27f3e677be02564noirin /usr/local/apache2/bin/httpd -S
909ce17e2bd0faef7b1c294f2307f009793fd493nd </code></p></div>
2aff288113d772cedca6add888eb643afffe9fb1nd
aa0b2780958e9b1467c9d0153a05738e399811a5nd <p>This command will dump out a description of how Apache parsed
2aff288113d772cedca6add888eb643afffe9fb1nd the configuration file. Careful examination of the IP addresses and
42af92a661a06b3cebc88d585aad75064a309d51nd server names may help uncover configuration mistakes. (See <a href="/programs/httpd.html">the docs for the httpd program</a> for
42af92a661a06b3cebc88d585aad75064a309d51nd other command line options)</p>
8951c7d73bfa2ae5a2c8fe5bd27f3e677be02564noirin
6fe26506780e73be2a412d758af77fafdf03291and</div></div>
2aff288113d772cedca6add888eb643afffe9fb1nd<div class="bottomlang">
aa0b2780958e9b1467c9d0153a05738e399811a5nd<p><span>Available Languages: </span><a href="/de/vhosts/" hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |
2aff288113d772cedca6add888eb643afffe9fb1nd<a href="/en/vhosts/" title="English">&nbsp;en&nbsp;</a> |
2aff288113d772cedca6add888eb643afffe9fb1nd<a href="/ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
2aff288113d772cedca6add888eb643afffe9fb1nd<a href="/ko/vhosts/" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
64c02f1310b7747423957823ee09fb3608430f89nd</div><div id="footer">
aa0b2780958e9b1467c9d0153a05738e399811a5nd<p class="apache">Copyright 1999-2004 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>
2aff288113d772cedca6add888eb643afffe9fb1nd<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>
2aff288113d772cedca6add888eb643afffe9fb1nd</body></html>