core.html revision 44afbb2bc1622ddf021058e2a157cfd31fb67fd0
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<!--#include virtual="header.html" -->
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenThese configuration parameters control the core Apache features, and are
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenalways available.
d482b35af87f5fd872bad007da0475813a401a49Timo Sirainen<li><A HREF="#accessfilename">AccessFileName</A>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<li><A HREF="#clearmodulelist">ClearModuleList</A>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<li><A HREF="#keepalivetimeout">KeepAliveTimeout</A>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<li><A HREF="#maxrequestsperchild">MaxRequestsPerChild</A>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<li><A HREF="#maxspareservers">MaxSpareServers</A>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<li><A HREF="#minspareservers">MinSpareServers</A>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<li><A HREF="#resourceconfig">ResourceConfig</A>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<li><A HREF="#sendbuffersize">SendBufferSize</A>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<li><A HREF="#virtualhost"><VirtualHost></A>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A name="accessconfig"><h2>AccessConfig directive</h2></A>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<!--%plaintext <?INDEX {\tt AccessConfig} directive> -->
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Syntax:</strong> AccessConfig <em>filename</em><br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Default:</strong> <code>AccessConfig conf/access.conf</code><br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Context:</strong> server config, virtual host<br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenThe server will read this file for more directives after reading the
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainen<A HREF="#resourceconfig">ResourceConfig</A> file. <em>Filename</em> is
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainenrelative to the <A HREF="#serverroot">ServerRoot</A>.
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenThis feature can be disabled using:
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainen<blockquote><code>AccessConfig /dev/null</code></blockquote>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenHistorically, this file only contained
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="#directory"><Directory></A> sections; in fact it can now
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainencontain any server directive allowed in the <em>server config</em> context.
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainen<A name="accessfilename"><h2>AccessFileName directive</h2></A>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<!--%plaintext <?INDEX {\tt AccessFileName} directive> -->
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Syntax:</strong> AccessFileName <em>filename</em><br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Default:</strong> <code>AccessFileName .htaccess</code><br>
3b94ff5951db4d4eddb7a80ed4e3f61207202635Timo Sirainen<strong>Context:</strong> server config, virtual host<br>
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo SirainenWhen returning a document to the client the server looks for an
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainenaccess control file with this name in every directory of the path to
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenthe document, if access control files are enabled for that directory.
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<blockquote><code>AccessFileName .acl</code></blockquote>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenbefore returning the document /usr/local/web/index.html, the
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenserver will read /.acl, /usr/.acl, /usr/local/.acl and /usr/local/web/.acl
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenfor directives, unless they have been disabled with
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<Directory /><br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenAllowOverride None<br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A name="addmodule"><h2>AddModule directive</h2></A>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<!--%plaintext <?INDEX {\tt AddModule} directive> -->
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Syntax:</strong> AddModule <em>module module ...</em><br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Compatibility:</strong> AddModule is only available in Apache 1.2 and later<p>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenThe server can have modules compiled in which are not actively in use.
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenThis directive can be used to enable the use of those modules. The
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenserver comes with a pre-loaded list of active modules; this list can
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenbe cleared with the <A HREF="#clearmodulelist">ClearModuleList</A>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A name="allowoverride"><h2>AllowOverride directive</h2></A>
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainen<!--%plaintext <?INDEX {\tt AllowOverride} directive> -->
ace3c14e47a5a865df8aeea2fabc993b609dd163Timo Sirainen<strong>Syntax:</strong> AllowOverride <em>override override ...</em><br>
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainen<strong>Default:</strong> <code>AllowOverride All</code><br>
ace3c14e47a5a865df8aeea2fabc993b609dd163Timo SirainenWhen the server finds an .htaccess file (as specified by
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainen<A HREF="#accessfilename">AccessFileName</A>) it needs to know which
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainendirectives declared in that file can override earlier access information.<p>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<em>Override</em> can be set to <code>None</code>, in which case the server
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenwill not read the file, <code>All</code> in which case the server will
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenallow all the directives, or one or more of the following:
ace3c14e47a5a865df8aeea2fabc993b609dd163Timo Sirainen<dt>AuthConfig
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<!--%plaintext <?INDEX {\tt AuthConfig} override> -->
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenAllow use of the authorization directives
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen(<A HREF="mod_auth_dbm.html#authdbmgroupfile">AuthDBMGroupFile</A>,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<A HREF="mod_auth_dbm.html#authdbmuserfile">AuthDBMUserFile</A>,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<A HREF="mod_auth.html#authgroupfile">AuthGroupFile</A>,
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="#authname">AuthName</A>, <A HREF="#authtype">AuthType</A>,
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="mod_auth.html#authuserfile">AuthUserFile</A> and
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<!--%plaintext <?INDEX {\tt FileInfo} override> -->
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenAllow use of the directives controlling document types
d8b77aef97e89f1ccc5cbdaef77be9052279e35fTimo Sirainen(<A HREF="mod_mime.html#addencoding">AddEncoding</A>,
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainen<A HREF="mod_mime.html#addlanguage">AddLanguage</A>,
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="mod_negotiation.html#languagepriority">LanguagePriority</A>).
659fe5d24825b160cae512538088020d97a60239Timo Sirainen<!--%plaintext <?INDEX {\tt Indexes} override> -->
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenAllow use of the directives controlling directory indexing
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen(<A HREF="mod_dir.html#adddescription">AddDescription</A>,
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="mod_dir.html#addiconbyencoding">AddIconByEncoding</A>,
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="mod_dir.html#addiconbytype">AddIconByType</A>,
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="mod_dir.html#defaulticon">DefaultIcon</A>,
b35f7104715edee0cfac6d46ab0b342033867eb7Timo Sirainen<A HREF="mod_dir.html#directoryindex">DirectoryIndex</A>,
d8b77aef97e89f1ccc5cbdaef77be9052279e35fTimo Sirainen<A HREF="mod_dir.html#fancyindexing">FancyIndexing</A>,
d8b77aef97e89f1ccc5cbdaef77be9052279e35fTimo Sirainen<A HREF="mod_dir.html#headername">HeaderName</A>,
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="mod_dir.html#indexignore">IndexIgnore</A>,
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="mod_dir.html#indexoptions">IndexOptions</A> and
d8b77aef97e89f1ccc5cbdaef77be9052279e35fTimo Sirainen<A HREF="mod_dir.html#readmename">ReadmeName</A>).
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<!--%plaintext <?INDEX {\tt Limit} override> -->
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenAllow use of the directives controlling host access (allow, deny and order).
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainen<!--%plaintext <?INDEX {\tt Options} override> -->
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenAllow use of the directives controlling specific directory features
d8b77aef97e89f1ccc5cbdaef77be9052279e35fTimo Sirainen<A HREF="mod_include.html#xbithack">XBitHack</A>).
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A name="authname"><h2>AuthName directive</h2></A>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<!--%plaintext <?INDEX {\tt AuthName} directive> -->
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<strong>Syntax:</strong> AuthName <em>auth-domain</em><br>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<strong>Context:</strong> directory, .htaccess<br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenThis directive sets the name of the authorization realm for a directory.
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenThis realm is given to the client so that the user knows which username and
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenpassword to send.
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenIt must be accompanied by <A HREF="#authtype">AuthType</A> and
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="#require">require</A> directives, and directives such as
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="mod_auth.html#authuserfile">AuthUserFile</A> and
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="mod_auth.html#authgroupfile">AuthGroupFile</A> to work.<p><hr>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A name="authtype"><h2>AuthType directive</h2></A>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<!--%plaintext <?INDEX {\tt AuthType} directive> -->
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Syntax:</strong> AuthType <em>type</em><br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Context:</strong> directory, .htaccess<br>
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo SirainenThis directive selects the type of user authentication for a directory.
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo SirainenOnly <code>Basic</code> is currently implemented.
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainen<!--%plaintext <?INDEX {\tt Basic} authentication scheme> -->
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenIt must be accompanied by <A HREF="#authname">AuthName</A> and
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="#require">require</A> directives, and directives such as
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="mod_auth.html#authuserfile">AuthUserFile</A> and
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A HREF="mod_auth.html#authgroupfile">AuthGroupFile</A> to work.<p><hr>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A name="clearmodulelist"><h2>ClearModuleList directive</h2></A>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<!--%plaintext <?INDEX {\tt ClearModuleList} directive> -->
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Compatibility:</strong> ClearModuleList is only available in Apache 1.2 and later<p>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenThe server comes with a built-in list of active modules. This
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainendirective clears the list. It is assumed that the list will then be
1175f27441385a7011629f295f42708f9a3a4ffcTimo Sirainenre-populated using the <A HREF="#addmodule">AddModule</A> directive.<p><hr>
1175f27441385a7011629f295f42708f9a3a4ffcTimo Sirainen<A name="bindaddress"><h2>BindAddress directive</h2></A>
1175f27441385a7011629f295f42708f9a3a4ffcTimo Sirainen<!--%plaintext <?INDEX {\tt BindAddress} directive> -->
1175f27441385a7011629f295f42708f9a3a4ffcTimo Sirainen<strong>Syntax:</strong> BindAddress <em>saddr</em><br>
1175f27441385a7011629f295f42708f9a3a4ffcTimo Sirainen<strong>Default:</strong> <code>BindAddress *</code><br>
1175f27441385a7011629f295f42708f9a3a4ffcTimo SirainenA Unix® http server can either listen on for connections to every
1175f27441385a7011629f295f42708f9a3a4ffcTimo SirainenIP address of the server machine, or just one IP address of the server
1175f27441385a7011629f295f42708f9a3a4ffcTimo Sirainen<li>An IP address
1175f27441385a7011629f295f42708f9a3a4ffcTimo Sirainen<li>A fully-qualified internet domain name
1175f27441385a7011629f295f42708f9a3a4ffcTimo SirainenIf the value is *, then the server will listen for connections on
1175f27441385a7011629f295f42708f9a3a4ffcTimo Sirainenevery IP address, otherwise it will only listen on the IP address
1175f27441385a7011629f295f42708f9a3a4ffcTimo Sirainenspecified. <p>
1175f27441385a7011629f295f42708f9a3a4ffcTimo SirainenThis option can be used as an alternative method for supporting
1175f27441385a7011629f295f42708f9a3a4ffcTimo Sirainen<A HREF="virtual-host.html">virtual hosts</A> instead of using
1175f27441385a7011629f295f42708f9a3a4ffcTimo Sirainen<A HREF="#virtualhost"><VirtualHost></A> sections.<p><hr>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<a href="bind.html">Setting which addresses and ports Apache uses</a></p>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<A name="defaulttype"><h2>DefaultType directive</h2></A>
6a675eda973195f8c00c101519521b788781ba37Timo Sirainen<!--%plaintext <?INDEX {\tt DefaultType} directive> -->
31ddc75584c5cde53d2e78a737587f2e7fdcb0d2Timo Sirainen<strong>Syntax:</strong> DefaultType <em>mime-type</em><br>
31ddc75584c5cde53d2e78a737587f2e7fdcb0d2Timo Sirainen<strong>Default:</strong> <code>DefaultType text/html</code><br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Context:</strong> server config, virtual host, directory, .htaccess<br>
b2105c78f0fd58281317e6d777ded860f33153a3Timo SirainenThere will be times when the server is asked to provide a document
b2105c78f0fd58281317e6d777ded860f33153a3Timo Sirainenwhose type cannot be determined by its MIME types mappings.<p>
690af4a90eaf8611c2573d34126bb7a852c50a44Timo SirainenThe server must inform the client of the content-type of the document, so in
690af4a90eaf8611c2573d34126bb7a852c50a44Timo Sirainenthe event of an unknown type it uses the <CODE>DefaultType</CODE>. For
e4fb5bfcdff32d337d054cce36e00e1cdfaae9f8Timo Sirainen<blockquote><code>DefaultType image/gif</code></blockquote>
e4fb5bfcdff32d337d054cce36e00e1cdfaae9f8Timo Sirainenwould be appropriate for a directory which contained many gif images
690af4a90eaf8611c2573d34126bb7a852c50a44Timo Sirainenwith filenames missing the .gif extension.<p><hr>
b2105c78f0fd58281317e6d777ded860f33153a3Timo Sirainen<A name="directory"><h2><Directory> directive</h2></A>
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainen<!--%plaintext <?INDEX {\tt Directory} section directive> -->
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<strong>Syntax:</strong> <Directory <em>directory</em>> ... </Directory> <br>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<strong>Context:</strong> server config, virtual host<br>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<Directory> and </Directory> are used to enclose a group of
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainendirectives which will apply only to the named directory and sub-directories
b2105c78f0fd58281317e6d777ded860f33153a3Timo Sirainenof that directory. Any directive which is allowed in a directory
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainencontext may be used. <em>Directory</em> is either the full path to a directory,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenor a wild-card string. In a wild-card string, `?' matches any single character,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenand `*' matches any sequences of characters. Example:
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen Options Indexes FollowSymLinks
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen </Directory>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenExtended regular expressions can also be used, with the addition of the
31ddc75584c5cde53d2e78a737587f2e7fdcb0d2Timo Sirainen <Directory ~ "^/www/.*/[0-9]{3}">
5c1a8aee989af87bddefd71e2aa83aa2bd695155Timo Sirainenwould match directories in /www/ that consisted of three numbers.<p>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<p>If multiple directory sections match the directory (or its parents) containing
215daa7d5bf9a849849586490fd6fdd28a724dd8Timo Sirainena document, then the directives are applied in the order of shortest match
31ddc75584c5cde53d2e78a737587f2e7fdcb0d2Timo Sirainenfirst, interspersed with the directives from the
31ddc75584c5cde53d2e78a737587f2e7fdcb0d2Timo Sirainen<A HREF="#accessfilename">.htaccess</A> files. For example, with
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<Directory /><br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenAllowOverride None<br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<Directory /home/*><br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenAllowOverride FileInfo<br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenThe for access to the document <code>/home/web/dir/doc.html</code> the
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<li>Apply directive <code>AllowOverride None</code> (disabling
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<li>Apply directive <code>AllowOverride FileInfo</code> (for directory
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<li>Apply any FileInfo directives in <code>/home/web/.htaccess</code>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenThe directory sections typically occur in the access.conf file, but they
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenmay appear in any configuration file. <Directory> directives cannot
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainennest, and cannot appear in a <A HREF="#limit"><Limit></A> section.
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<A NAME="documentroot"><h2>DocumentRoot directive</h2></A>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<!--%plaintext <?INDEX {\tt DocumentRoot} directive> -->
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Syntax:</strong> DocumentRoot <em>directory-filename</em><br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Context:</strong> server config, virtual host<br>
659fe5d24825b160cae512538088020d97a60239Timo SirainenThis directive sets the directory from which httpd will serve files.
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenUnless matched by a directive like Alias, the server appends the path
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainenfrom the requested URL to the document root to make the path to the
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainendocument. Example:
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<blockquote><code>DocumentRoot /usr/web</code></blockquote>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenthen an access to <code>http://www.my.host.com/index.html</code> refers
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainen<P>There appears to be a bug in mod_dir which causes problems when the
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo SirainenDocumentRoot has a trailing slash (i.e. "DocumentRoot /usr/web/") so
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenplease avoid that.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<A name="errordocument"><h2>ErrorDocument directive</h2></A>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<!--%plaintext <?INDEX {\tt ErrorDocument} directive> -->
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Syntax:</strong> ErrorDocument <em>error-code document</em><br>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<strong>Context</strong> server config, virtual host, directory, .htaccess<br>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<strong>Compatibility:</strong> The directory and .htaccess contexts
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenare only available in Apache 1.1 and later.<p>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenIn the event of a problem or error, Apache can be configured to do
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenone of four things,
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainen<LI>behave like NCSA httpd 1.3
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainen<LI>output a customized message
b35f7104715edee0cfac6d46ab0b342033867eb7Timo Sirainen<LI>redirect to a local URL to handle the problem/error
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo Sirainen<LI>redirect to an external URL to handle the problem/error
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<P>2-4 are configured using <CODE>ErrorDocument</CODE>, which
b35f7104715edee0cfac6d46ab0b342033867eb7Timo Sirainenis followed by the HTTP response code and a message or URL.
b35f7104715edee0cfac6d46ab0b342033867eb7Timo Sirainen<P><em>Messages</em> in this context, begin with a single quote
b35f7104715edee0cfac6d46ab0b342033867eb7Timo Sirainen(<code>"</code>), which does not form part of the message itself. Apache will
b35f7104715edee0cfac6d46ab0b342033867eb7Timo Sirainensometime offer additional information regarding the problem/error.
b2105c78f0fd58281317e6d777ded860f33153a3Timo Sirainen<P>URLs will begin with a slash (/) for local URLs, or will be a full
8e7da21696c9f8a6d5e601243fb6172ec85d47b2Timo SirainenURL which the client can resolve. Examples:
5c1a8aee989af87bddefd71e2aa83aa2bd695155Timo SirainenErrorDocument 401 http://www2.foo.bar/subscription_info.html<br>
5c1a8aee989af87bddefd71e2aa83aa2bd695155Timo SirainenErrorDocument 403 "Sorry can't allow you access today
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenSee Also: <A HREF="custom-error.html">documentation of customizable
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<A name="errorlog"><h2>ErrorLog directive</h2></A>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<!--%plaintext <?INDEX {\tt ErrorLog} directive> -->
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Syntax:</strong> ErrorLog <em>filename</em><br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Default:</strong> <code>ErrorLog logs/error_log</code><br>
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen<strong>Context:</strong> server config, virtual host<br>
href="mod_mime.html#sethandler">SetHandler</a></code> directive. For example, to enable status requests, but allow them only
from browsers at foo.com, you might use:
allow from .foo.com
below 1024 are reserved for system use, i.e. regular (non-root) users cannot
speed high latency (i.e. 100ms or so, such as transcontinental
It may be worth setting up a dedicated address for this, e.g.
<!--#include virtual="footer.html" -->