mod_alias.html revision 240a5b8962329911d02566b600be6226e1f857ae
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<html xmlns="http://www.w3.org/TR/xhtml1/strict"><head><!--
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync This file is generated from xml source: DO NOT EDIT
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync--><title>mod_alias - Apache HTTP Server</title><link rel="stylesheet" type="text/css" href="/style/manual.css"/></head><body><blockquote><div align="center"><img src="/images/sub.gif" alt="[APACHE DOCUMENTATION]"/><h3>Apache HTTP Server Version 2.0</h3></div><h1 align="center">Apache Module mod_alias</h1><table bgcolor="#cccccc" cellpadding="0" cellspacing="1"><tr><td><table bgcolor="#ffffff"><tr><td valign="top"><span class="help">Description:</span></td><td>Provides for mapping different parts of the host
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync filesystem in the document tree and for URL redirection</td></tr><tr><td><a class="help" href="module-dict.html#Status">Status:</a></td><td>Base</td></tr><tr><td><a class="help" href="module-dict.html#ModuleIdentifier">Module Identifier:</a></td><td>alias_module</td></tr></table></td></tr></table><h2>Summary</h2>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>The directives contained in this module allow for manipulation
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync and control of URLs as requests arrive at the server. The
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <a class="directive" href="#alias"><code class="directive">Alias</code></a> and <a class="directive" href="#scriptalias"><code class="directive">ScriptAlias</code></a> directives are used to
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync map between URLs and filesystem paths. This allows for content
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync which is not directly under the <a class="directive" href="core.html#documentroot"><code class="directive">DocumentRoot</code></a> served as part of the web
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync document tree. The <a class="directive" href="#scriptalias"><code class="directive">ScriptAlias</code></a> directive has the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync additional effect of marking the target directory as containing
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync only CGI scripts.</p>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>The <a class="directive" href="#redirect"><code class="directive">Redirect</code></a>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync directives are used to instruct clients to make a new request with
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync a different URL. They are often used when a resource has moved to
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync a new location.</p>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<h2>Directives</h2><ul><li><a href="#alias">Alias</a></li><li><a href="#aliasmatch">AliasMatch</a></li><li><a href="#redirect">Redirect</a></li><li><a href="#redirectmatch">RedirectMatch</a></li><li><a href="#redirectpermanent">RedirectPermanent</a></li><li><a href="#redirecttemp">RedirectTemp</a></li><li><a href="#scriptalias">ScriptAlias</a></li><li><a href="#scriptaliasmatch">ScriptAliasMatch</a></li></ul><p><strong>See also </strong></p><ul><li><code><a href="mod_rewrite.html">mod_rewrite</a></code></li><li><a href="/urlmapping.html">Mapping URLs to the filesystem</a></li></ul><hr/><h2><a name="Alias">Alias</a> <a name="alias">Directive</a></h2><table bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1"><tr><td><table bgcolor="#ffffff"><tr><td><strong>Description: </strong></td><td>Maps URLs to filesystem locations</td></tr><tr><td><a class="help" href="directive-dict.html#Syntax">Syntax:</a></td><td> Alias <em>URL-path
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync file-path</em>|<em>directory-path</em></td></tr><tr><td><a class="help" href="directive-dict.html#Context">Context:</a></td><td>server config, virtual host</td></tr><tr><td><a class="help" href="directive-dict.html#Status">Status:</a></td><td>Base</td></tr><tr><td><a class="help" href="directive-dict.html#Module">Module:</a></td><td>mod_alias</td></tr></table></td></tr></table>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>The <code class="directive">Alias</code> directive allows documents to
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync be stored in the local filesystem other than under the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <a class="directive" href="core.html#documentroot"><code class="directive">DocumentRoot</code></a>. URLs with a
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync (%-decoded) path beginning with <em>url-path</em> will be mapped
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync to local files beginning with <em>directory-filename</em>.</p>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>Alias /image /ftp/pub/image</code></td></tr></table></blockquote>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>A request for http://myserver/image/foo.gif would cause the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync server to return the file /ftp/pub/image/foo.gif.</p>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>Note that if you include a trailing / on the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <em>url-path</em> then the server will require a trailing / in
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync order to expand the alias. That is, if you use <code>Alias
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync /icons/ /usr/local/apache/icons/</code> then the url
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>Note that you may need to specify additional <a class="directive" href="core.html#<directory>"><code class="directive"><Directory></code></a> sections which cover
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync the <em>destination</em> of aliases. Aliasing occurs before
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <a class="directive" href="core.html#<directory>"><code class="directive"><Directory></code></a> sections
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync are checked, so only the destination of aliases are affected.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync (Note however <a class="directive" href="core.html#<location>"><code class="directive"><Location></code></a>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync sections are run through once before aliases are performed, so
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync they will apply.)</p>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<hr/><h2><a name="AliasMatch">AliasMatch</a> <a name="aliasmatch">Directive</a></h2><table bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1"><tr><td><table bgcolor="#ffffff"><tr><td><strong>Description: </strong></td><td>Maps URLs to filesystem locations using regular
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncexpressions</td></tr><tr><td><a class="help" href="directive-dict.html#Syntax">Syntax:</a></td><td>AliasMatch <em>regex
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync file-path</em>|<em>directory-path</em></td></tr><tr><td><a class="help" href="directive-dict.html#Context">Context:</a></td><td>server config, virtual host</td></tr><tr><td><a class="help" href="directive-dict.html#Status">Status:</a></td><td>Base</td></tr><tr><td><a class="help" href="directive-dict.html#Module">Module:</a></td><td>mod_alias</td></tr></table></td></tr></table>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>This directive is equivalent to <a class="directive" href="#alias"><code class="directive">Alias</code></a>, but makes use of standard
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync regular expressions, instead of simple prefix matching. The
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync supplied regular expression is matched against the URL-path, and
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync if it matches, the server will substitute any parenthesized
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync matches into the given string and use it as a filename. For
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync example, to activate the <code>/icons</code> directory, one might
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<hr/><h2><a name="Redirect">Redirect</a> <a name="redirect">Directive</a></h2><table bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1"><tr><td><table bgcolor="#ffffff"><tr><td><strong>Description: </strong></td><td>Sends an external redirect asking the client to fetch
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsynca different URL</td></tr><tr><td><a class="help" href="directive-dict.html#Syntax">Syntax:</a></td><td>Redirect [<em>status</em>] <em>URL-path URL</em></td></tr><tr><td><a class="help" href="directive-dict.html#Context">Context:</a></td><td>server config, virtual host, directory, .htaccess</td></tr><tr><td><a class="help" href="directive-dict.html#Override">Override:</a></td><td>FileInfo</td></tr><tr><td><a class="help" href="directive-dict.html#Status">Status:</a></td><td>Base</td></tr><tr><td><a class="help" href="directive-dict.html#Module">Module:</a></td><td>mod_alias</td></tr></table></td></tr></table>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>The Redirect directive maps an old URL into a new one. The
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync new URL is returned to the client which attempts to fetch it
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync again with the new address. <em>URL-path</em> a (%-decoded)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync path; any requests for documents beginning with this path will
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync be returned a redirect error to a new (%-encoded) URL beginning
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>Redirect /service http://foo2.bar.com/service</code></td></tr></table></blockquote>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>If the client requests http://myserver/service/foo.txt, it
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync will be told to access http://foo2.bar.com/service/foo.txt
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync instead.</p>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<blockquote><table><tr><td bgcolor="#e0e5f5"><p align="center"><strong>Note</strong></p> <p>Redirect directives take precedence over
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncAlias and ScriptAlias directives, irrespective of their ordering in
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncthe configuration file. Also, <em>URL-path</em> must be an absolute
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncpath, not a relative path, even when used with .htaccess files or
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncinside of <a class="directive" href="core.html#<directory>"><code class="directive"><Directory></code></a>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>If no <em>status</em> argument is given, the redirect will
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync be "temporary" (HTTP status 302). This indicates to the client
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync that the resource has moved temporarily. The <em>status</em>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync argument can be used to return other HTTP status codes:</p>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <dd>Returns a permanent redirect status (301) indicating that
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync the resource has moved permanently.</dd>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <dd>Returns a temporary redirect status (302). This is the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync default.</dd>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <dd>Returns a "See Other" status (303) indicating that the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync resource has been replaced.</dd>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <dd>Returns a "Gone" status (410) indicating that the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync resource has been permanently removed. When this status is
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync used the <em>url</em> argument should be omitted.</dd>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>Other status codes can be returned by giving the numeric
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync status code as the value of <em>status</em>. If the status is
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync between 300 and 399, the <em>url</em> argument must be present,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync otherwise it must be omitted. Note that the status must be
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync known to the Apache code (see the function
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <code>send_error_response</code> in http_protocol.c).</p>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<hr/><h2><a name="RedirectMatch">RedirectMatch</a> <a name="redirectmatch">Directive</a></h2><table bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1"><tr><td><table bgcolor="#ffffff"><tr><td><strong>Description: </strong></td><td>Sends an external redirect asking the client to fetch
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsynca different URL based on a regular expression match of the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsynccurrent URL</td></tr><tr><td><a class="help" href="directive-dict.html#Syntax">Syntax:</a></td><td>RedirectMatch [<em>status</em>] <em>regex URL</em></td></tr><tr><td><a class="help" href="directive-dict.html#Context">Context:</a></td><td>server config, virtual host, directory, .htaccess</td></tr><tr><td><a class="help" href="directive-dict.html#Override">Override:</a></td><td>FileInfo</td></tr><tr><td><a class="help" href="directive-dict.html#Status">Status:</a></td><td>Base</td></tr><tr><td><a class="help" href="directive-dict.html#Module">Module:</a></td><td>mod_alias</td></tr></table></td></tr></table>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>This directive is equivalent to <a class="directive" href="#redirect"><code class="directive">Redirect</code></a>, but makes use of standard
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync regular expressions, instead of simple prefix matching. The
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync supplied regular expression is matched against the URL-path, and
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync if it matches, the server will substitute any parenthesized
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync matches into the given string and use it as a filename. For
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync example, to redirect all GIF files to like-named JPEG files on
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync another server, one might use:</p>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync RedirectMatch (.*)\.gif$ http://www.anotherserver.com$1.jpg
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<hr/><h2><a name="RedirectPermanent">RedirectPermanent</a> <a name="redirectpermanent">Directive</a></h2><table bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1"><tr><td><table bgcolor="#ffffff"><tr><td><strong>Description: </strong></td><td>Sends an external permanent redirect asking the client to fetch
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsynca different URL</td></tr><tr><td><a class="help" href="directive-dict.html#Syntax">Syntax:</a></td><td>RedirectPermanent <em>URL-path URL</em></td></tr><tr><td><a class="help" href="directive-dict.html#Context">Context:</a></td><td>server config, virtual host, directory, .htaccess</td></tr><tr><td><a class="help" href="directive-dict.html#Override">Override:</a></td><td>FileInfo</td></tr><tr><td><a class="help" href="directive-dict.html#Status">Status:</a></td><td>Base</td></tr><tr><td><a class="help" href="directive-dict.html#Module">Module:</a></td><td>mod_alias</td></tr></table></td></tr></table>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>This directive makes the client know that the Redirect is
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync permanent (status 301). Exactly equivalent to <code>Redirect
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<hr/><h2><a name="RedirectTemp">RedirectTemp</a> <a name="redirecttemp">Directive</a></h2><table bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1"><tr><td><table bgcolor="#ffffff"><tr><td><strong>Description: </strong></td><td>Sends an external temporary redirect asking the client to fetch
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsynca different URL</td></tr><tr><td><a class="help" href="directive-dict.html#Syntax">Syntax:</a></td><td>RedirectTemp <em>URL-path URL</em></td></tr><tr><td><a class="help" href="directive-dict.html#Context">Context:</a></td><td>server config, virtual host, directory, .htaccess</td></tr><tr><td><a class="help" href="directive-dict.html#Override">Override:</a></td><td>FileInfo</td></tr><tr><td><a class="help" href="directive-dict.html#Status">Status:</a></td><td>Base</td></tr><tr><td><a class="help" href="directive-dict.html#Module">Module:</a></td><td>mod_alias</td></tr></table></td></tr></table>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>This directive makes the client know that the Redirect is
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync only temporary (status 302). Exactly equivalent to
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<hr/><h2><a name="ScriptAlias">ScriptAlias</a> <a name="scriptalias">Directive</a></h2><table bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1"><tr><td><table bgcolor="#ffffff"><tr><td><strong>Description: </strong></td><td>Maps a URL to a filesystem location and designates the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsynctarget as a CGI script</td></tr><tr><td><a class="help" href="directive-dict.html#Syntax">Syntax:</a></td><td>ScriptAlias
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<em>URL-path file-path</em>|<em>directory-path</em></td></tr><tr><td><a class="help" href="directive-dict.html#Context">Context:</a></td><td>server config, virtual host</td></tr><tr><td><a class="help" href="directive-dict.html#Status">Status:</a></td><td>Base</td></tr><tr><td><a class="help" href="directive-dict.html#Module">Module:</a></td><td>mod_alias</td></tr></table></td></tr></table>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>The <code class="directive">ScriptAlias</code> directive has the same
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync behavior as the <a class="directive" href="#alias"><code class="directive">Alias</code></a>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync directive, except that in addition it marks the target directory
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync as containing CGI scripts that will be processed by <code><a href="mod_cgi.html">mod_cgi</a></code>'s cgi-script handler. URLs with a
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync (%-decoded) path beginning with <em>URL-path</em> will be mapped
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync to scripts beginning with the second argument which is a full
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync pathname in the local filesystem.</p>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>ScriptAlias /cgi-bin/ /web/cgi-bin/</code></td></tr></table></blockquote>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>A request for <code>http://myserver/cgi-bin/foo</code> would cause the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync server to run the script <code>/web/cgi-bin/foo</code>.</p>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<hr/><h2><a name="ScriptAliasMatch">ScriptAliasMatch</a> <a name="scriptaliasmatch">Directive</a></h2><table bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1"><tr><td><table bgcolor="#ffffff"><tr><td><strong>Description: </strong></td><td>Maps a URL to a filesystem location using a regular expression
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncand designates the target as a CGI script</td></tr><tr><td><a class="help" href="directive-dict.html#Syntax">Syntax:</a></td><td>ScriptAliasMatch
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<em>regex file-path</em>|<em>directory-path</em></td></tr><tr><td><a class="help" href="directive-dict.html#Context">Context:</a></td><td>server config, virtual host</td></tr><tr><td><a class="help" href="directive-dict.html#Status">Status:</a></td><td>Base</td></tr><tr><td><a class="help" href="directive-dict.html#Module">Module:</a></td><td>mod_alias</td></tr></table></td></tr></table>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <p>This directive is equivalent to <a class="directive" href="#scriptalias"><code class="directive">ScriptAlias</code></a>, but makes use of standard
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync regular expressions, instead of simple prefix matching. The
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync supplied regular expression is matched against the URL-path,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync and if it matches, the server will substitute any parenthesized
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync matches into the given string and use it as a filename. For
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync example, to activate the standard <code>/cgi-bin</code>, one
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync might use:</p>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>