mod_vhost_alias.html revision 0cff0af4031298cb16c17c038082e798af99cb9e
03831d35f7499c87d51205817c93e9a8d42c4baestevel<html xmlns="http://www.w3.org/TR/xhtml1/strict"><head><!--
03831d35f7499c87d51205817c93e9a8d42c4baestevelXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
03831d35f7499c87d51205817c93e9a8d42c4baestevel This file is generated from xml source: DO NOT EDIT
03831d35f7499c87d51205817c93e9a8d42c4baestevelXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
03831d35f7499c87d51205817c93e9a8d42c4baestevel--><title>mod_vhost_alias - Apache HTTP Server</title><link href="/style/manual.css" type="text/css" rel="stylesheet"/></head><body><blockquote><div align="center"><img alt="[APACHE DOCUMENTATION]" src="/images/sub.gif"/><h3>Apache HTTP Server Version 2.0</h3></div><h1 align="center">Apache Module mod_vhost_alias</h1><table cellspacing="1" cellpadding="0" bgcolor="#cccccc"><tr><td><table bgcolor="#ffffff"><tr><td valign="top"><span class="help">Description:</span></td><td><description>Provides for <a href="/vhosts/mass.html">dynamically configured mass virtual
03831d35f7499c87d51205817c93e9a8d42c4baestevelhosting</a></description></td></tr><tr><td><a href="module-dict.html#Status" class="help">Status:</a></td><td>Extension</td></tr><tr><td><a href="module-dict.html#ModuleIdentifier" class="help">Module Identifier:</a></td><td>vhost_alias_module</td></tr></table></td></tr></table><h2>Summary</h2><summary>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <p>This module creates dynamically configured virtual hosts, by
03831d35f7499c87d51205817c93e9a8d42c4baestevel allowing the IP address and/or the <code>Host:</code> header of
03831d35f7499c87d51205817c93e9a8d42c4baestevel the HTTP request to be used as part of the pathname to
03831d35f7499c87d51205817c93e9a8d42c4baestevel determine what files to serve. This allows for easy use of a
03831d35f7499c87d51205817c93e9a8d42c4baestevel huge number of virtual hosts with similar configurations.</p>
03831d35f7499c87d51205817c93e9a8d42c4baestevel</summary><p><strong>See also </strong></p><ul><li><a href="core.html#usecanonicalname" class="directive"><code class="directive">UseCanonicalName</code></a>.</li></ul><h2>Directives</h2><ul><li><a href="#virtualdocumentroot">VirtualDocumentRoot</a></li><li><a href="#virtualdocumentrootip">VirtualDocumentRootIP</a></li><li><a href="#virtualscriptalias">VirtualScriptAlias</a></li><li><a href="#virtualscriptaliasip">VirtualScriptAliasIP</a></li></ul><h2>Directory Name Interpolation</h2>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <p>All the directives in this module interpolate a string into
03831d35f7499c87d51205817c93e9a8d42c4baestevel a pathname. The interpolated string (henceforth called the
03831d35f7499c87d51205817c93e9a8d42c4baestevel "name") may be either the server name (see the <a href="core.html#usecanonicalname"><code>UseCanonicalName</code></a>
03831d35f7499c87d51205817c93e9a8d42c4baestevel directive for details on how this is determined) or the IP
03831d35f7499c87d51205817c93e9a8d42c4baestevel address of the virtual host on the server in dotted-quad
03831d35f7499c87d51205817c93e9a8d42c4baestevel format. The interpolation is controlled by specifiers inspired
03831d35f7499c87d51205817c93e9a8d42c4baestevel by <code>printf</code> which have a number of formats:</p>
03831d35f7499c87d51205817c93e9a8d42c4baestevel<td>insert the port number of the virtual host</td></tr>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <p><code>N</code> and <code>M</code> are used to specify
03831d35f7499c87d51205817c93e9a8d42c4baestevel substrings of the name. <code>N</code> selects from the
03831d35f7499c87d51205817c93e9a8d42c4baestevel dot-separated components of the name, and <code>M</code>
03831d35f7499c87d51205817c93e9a8d42c4baestevel selects characters within whatever <code>N</code> has selected.
03831d35f7499c87d51205817c93e9a8d42c4baestevel <code>M</code> is optional and defaults to zero if it isn't
aa52b40e638e124bfdc5d2a65d512955e606cab1fw present; the dot must be present if and only if <code>M</code>
03831d35f7499c87d51205817c93e9a8d42c4baestevel is present. The interpretation is as follows:</p>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <td>the penultimate and all preceding parts</td></tr>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <p>If <code>N</code> or <code>M</code> is greater than the number
03831d35f7499c87d51205817c93e9a8d42c4baestevel of parts available a single underscore is interpolated. </p>
03831d35f7499c87d51205817c93e9a8d42c4baestevel <p>For simple name-based virtual hosts you might use the
<p>The <a href="mod_log_config.html#logformat" class="directive"><code class="directive">LogFormat</code></a>
<hr/><h2><a name="VirtualDocumentRoot">VirtualDocumentRoot</a> <a name="virtualdocumentroot">Directive</a></h2><table cellpadding="1" cellspacing="0" border="0" bgcolor="#cccccc"><tr><td><table bgcolor="#ffffff"><tr><td><strong>Description: </strong></td><td>Dynamically configure the location of the document root
for a given virtual host</td></tr><tr><td><a href="directive-dict.html#Syntax" class="help">Syntax:</a></td><td><syntax>VirtualDocumentRoot <em>interpolated-directory</em></syntax></td></tr><tr><td><a href="directive-dict.html#Default" class="help">Default:</a></td><td><code>none</code></td></tr><tr><td><a href="directive-dict.html#Context" class="help">Context:</a></td><td>server config, virtual host</td></tr><tr><td><a href="directive-dict.html#Override" class="help">Override:</a></td><td/></tr><tr><td><a href="directive-dict.html#Status" class="help">Status:</a></td><td>Extension</td></tr><tr><td><a href="directive-dict.html#Module" class="help">Module:</a></td><td>mod_vhost_alias</td></tr><tr><td align="left" valign="top"><a href="directive-dict.html#Compatibility" class="help">Compatibility:</a></td><td>VirtualDocumentRoot is only available in 1.3.7 and
document tree in a similar manner to the <a href="core.html#documentroot" class="directive"><code class="directive">DocumentRoot</code></a> directive's argument.
</usage><hr/><h2><a name="VirtualDocumentRootIP">VirtualDocumentRootIP</a> <a name="virtualdocumentrootip">Directive</a></h2><table cellpadding="1" cellspacing="0" border="0" bgcolor="#cccccc"><tr><td><table bgcolor="#ffffff"><tr><td><strong>Description: </strong></td><td>Dynamically configure the location of the document root
for a given virtual host</td></tr><tr><td><a href="directive-dict.html#Syntax" class="help">Syntax:</a></td><td><syntax>VirtualDocumentRootIP <em>interpolated-directory</em></syntax></td></tr><tr><td><a href="directive-dict.html#Default" class="help">Default:</a></td><td><code>none</code></td></tr><tr><td><a href="directive-dict.html#Context" class="help">Context:</a></td><td>server config, virtual host</td></tr><tr><td><a href="directive-dict.html#Override" class="help">Override:</a></td><td/></tr><tr><td><a href="directive-dict.html#Status" class="help">Status:</a></td><td>Extension</td></tr><tr><td><a href="directive-dict.html#Module" class="help">Module:</a></td><td>mod_vhost_alias</td></tr><tr><td align="left" valign="top"><a href="directive-dict.html#Compatibility" class="help">Compatibility:</a></td><td>VirtualDocumentRootIP is only available in 1.3.7
</usage><hr/><h2><a name="VirtualScriptAlias">VirtualScriptAlias</a> <a name="virtualscriptalias">Directive</a></h2><table cellpadding="1" cellspacing="0" border="0" bgcolor="#cccccc"><tr><td><table bgcolor="#ffffff"><tr><td><strong>Description: </strong></td><td>Dynamically configure the location of the CGI directory for
a given virtual host</td></tr><tr><td><a href="directive-dict.html#Syntax" class="help">Syntax:</a></td><td><syntax>VirtualScriptAlias <em>interpolated-directory</em></syntax></td></tr><tr><td><a href="directive-dict.html#Default" class="help">Default:</a></td><td><code>none</code></td></tr><tr><td><a href="directive-dict.html#Context" class="help">Context:</a></td><td>server config, virtual host</td></tr><tr><td><a href="directive-dict.html#Override" class="help">Override:</a></td><td/></tr><tr><td><a href="directive-dict.html#Status" class="help">Status:</a></td><td>Extension</td></tr><tr><td><a href="directive-dict.html#Module" class="help">Module:</a></td><td>mod_vhost_alias</td></tr><tr><td align="left" valign="top"><a href="directive-dict.html#Compatibility" class="help">Compatibility:</a></td><td>VirtualScriptAlias is only available in 1.3.7
<code>/cgi-bin/</code>, much like <a href="mod_alias.html#scriptalias" class="directive"><code class="directive">ScriptAlias</code></a>
</usage><hr/><h2><a name="VirtualScriptAliasIP">VirtualScriptAliasIP</a> <a name="virtualscriptaliasip">Directive</a></h2><table cellpadding="1" cellspacing="0" border="0" bgcolor="#cccccc"><tr><td><table bgcolor="#ffffff"><tr><td><strong>Description: </strong></td><td>Dynamically configure the location of the cgi directory for
a given virtual host</td></tr><tr><td><a href="directive-dict.html#Syntax" class="help">Syntax:</a></td><td><syntax>VirtualScriptAliasIP <em>interpolated-directory</em></syntax></td></tr><tr><td><a href="directive-dict.html#Default" class="help">Default:</a></td><td><code>none</code></td></tr><tr><td><a href="directive-dict.html#Context" class="help">Context:</a></td><td>server config, virtual host</td></tr><tr><td><a href="directive-dict.html#Override" class="help">Override:</a></td><td/></tr><tr><td><a href="directive-dict.html#Status" class="help">Status:</a></td><td>Extension</td></tr><tr><td><a href="directive-dict.html#Module" class="help">Module:</a></td><td>mod_vhost_alias</td></tr><tr><td align="left" valign="top"><a href="directive-dict.html#Compatibility" class="help">Compatibility:</a></td><td>VirtualScriptAliasIP is only available in 1.3.7