index.html.en revision 166c7891cc2a7545eca0f4dda6af92026bc43fcf
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<?xml version="1.0" encoding="ISO-8859-1"?>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd This file is generated from xml source: DO NOT EDIT
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd -->
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<title>Apache Virtual Host documentation - Apache HTTP Server</title>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<link href="/images/favicon.ico" rel="shortcut icon" /></head>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<body id="manual-page"><div id="page-header">
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<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.3</p>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<img alt="" src="/images/feather.gif" /></div>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<div class="up"><a href="../"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<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/">Documentation</a> &gt; <a href="../">Version 2.3</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> |
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd<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> |
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<a href="/ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<a href="/ko/vhosts/" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<a href="/tr/vhosts/" hreflang="tr" rel="alternate" title="T�rk�e">&nbsp;tr&nbsp;</a></p>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd</div>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd <p>The term <cite>Virtual Host</cite> refers to the practice of
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd running more than one web site (such as
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd <code>www.company1.com</code> and <code>www.company2.com</code>)
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd on a single machine. Virtual hosts can be "<a href="ip-based.html">IP-based</a>", meaning that you have a
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd different IP address for every web site, or "<a href="name-based.html">name-based</a>", meaning that you have
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd multiple names running on each IP address. The fact that they
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd are running on the same physical server is not apparent to the
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd end user.</p>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd <p>Apache was one of the first servers to support IP-based
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd virtual hosts right out of the box. Versions 1.1 and later of
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd Apache support both IP-based and name-based virtual hosts
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd (vhosts). The latter variant of virtual hosts is sometimes also
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd called <em>host-based</em> or <em>non-IP virtual hosts</em>.</p>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd <p>Below is a list of documentation pages which explain all
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd details of virtual host support in Apache version 1.3 and
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd later.</p>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd</div>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#support">Virtual Host Support</a></li>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<li><img alt="" src="/images/down.gif" /> <a href="#directives">Configuration directives</a></li>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd</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
08c8bef71828a0c2fc3c393deb6c174cc7f13153ianhhosts</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>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<div class="section">
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<h2><a name="support" id="support">Virtual Host Support</a></h2>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd <ul>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd <li><a href="name-based.html">Name-based Virtual Hosts</a> (More
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd than one web site per IP address)</li>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd <li><a href="ip-based.html">IP-based Virtual Hosts</a> (An IP
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd address for each web site)</li>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd <li><a href="examples.html">Virtual Host examples for common
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd setups</a></li>
d05d0eb4ae6d2a5e513fc3bf2555ce33da416634nd <li><a href="fd-limits.html">File Descriptor Limits</a> (or,
d05d0eb4ae6d2a5e513fc3bf2555ce33da416634nd <em>Too many log files</em>)</li>
d05d0eb4ae6d2a5e513fc3bf2555ce33da416634nd <li><a href="mass.html">Dynamically Configured Mass Virtual
d05d0eb4ae6d2a5e513fc3bf2555ce33da416634nd Hosting</a></li>
d05d0eb4ae6d2a5e513fc3bf2555ce33da416634nd <li><a href="details.html">In-Depth Discussion of Virtual Host
d05d0eb4ae6d2a5e513fc3bf2555ce33da416634nd Matching</a></li>
d05d0eb4ae6d2a5e513fc3bf2555ce33da416634nd </ul>
d05d0eb4ae6d2a5e513fc3bf2555ce33da416634nd
d05d0eb4ae6d2a5e513fc3bf2555ce33da416634nd</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<div class="section">
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd<h2><a name="directives" id="directives">Configuration directives</a></h2>
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd <ul>
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd <li><code class="directive"><a href="/mod/core.html#virtualhost">&lt;VirtualHost&gt;</a></code></li>
8951c7d73bfa2ae5a2c8fe5bd27f3e677be02564noirin <li><code class="directive"><a href="/mod/core.html#namevirtualhost">NameVirtualHost</a></code></li>
c82fca6d3f5608b946f18d37e8710b1d71e3478dnd <li><code class="directive"><a href="/mod/core.html#servername">ServerName</a></code></li>
b636af865d96808dfb18913d607442a150fb53b6jim <li><code class="directive"><a href="/mod/core.html#serveralias">ServerAlias</a></code></li>
<li><code class="directive"><a href="/mod/core.html#serverpath">ServerPath</a></code></li>
</ul>
<p>If you are trying to debug your virtual host configuration, you
may find the Apache <code>-S</code> command line switch
useful. That is, type the following command:</p>
<div class="example"><p><code>
/usr/local/apache2/bin/httpd -S
</code></p></div>
<p>This command will dump out a description of how Apache parsed
the configuration file. Careful examination of the IP addresses and
server names may help uncover configuration mistakes. (See
the docs for the <code class="program"><a href="/programs/httpd.html">httpd</a></code> program for
other command line options)</p>
</div></div>
<div class="bottomlang">
<p><span>Available Languages: </span><a href="/de/vhosts/" hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |
<a href="/en/vhosts/" title="English">&nbsp;en&nbsp;</a> |
<a href="/fr/vhosts/" hreflang="fr" rel="alternate" title="Fran�ais">&nbsp;fr&nbsp;</a> |
<a href="/ja/vhosts/" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
<a href="/ko/vhosts/" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
<a href="/tr/vhosts/" hreflang="tr" rel="alternate" title="T�rk�e">&nbsp;tr&nbsp;</a></p>
</div><div id="footer">
<p class="apache">Copyright 2009 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>
<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>
</body></html>