core.xml revision 56d7eed7205462540aec7202cd82d9f5516fc537
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<?xml version="1.0"?>
530eba85dbd41b8a0fa5255d3648d1440199a661slive<!DOCTYPE modulesynopsis SYSTEM "/style/modulesynopsis.dtd">
e942c741056732f50da2074b36fe59805d370650slive<?xml-stylesheet type="text/xsl" href="/style/manual.en.xsl"?>
5f5d1b4cc970b7f06ff8ef6526128e9a27303d88nd<!-- $LastChangedRevision$ -->
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd<!--
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding Copyright 2002-2005 The Apache Software Foundation or its licensors, as
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding applicable.
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding Licensed under the Apache License, Version 2.0 (the "License");
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding you may not use this file except in compliance with the License.
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding You may obtain a copy of the License at
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd http://www.apache.org/licenses/LICENSE-2.0
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd Unless required by applicable law or agreed to in writing, software
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd distributed under the License is distributed on an "AS IS" BASIS,
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd See the License for the specific language governing permissions and
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd limitations under the License.
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd-->
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd
7db9f691a00ead175b03335457ca296a33ddf31bnd<modulesynopsis metafile="core.xml.meta">
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>core</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Core Apache HTTP Server features that are always
80c4526970a11f37c0f8e3b82afdf03902dac3f3sliveavailable</description>
530eba85dbd41b8a0fa5255d3648d1440199a661slive<status>Core</status>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna<directivesynopsis>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna<name>AcceptPathInfo</name>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna<description>Resources accept trailing pathname information</description>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna<syntax>AcceptPathInfo On|Off|Default</syntax>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna<default>AcceptPathInfo Default</default>
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen<contextlist><context>server config</context>
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen<context>virtual host</context><context>directory</context>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna<context>.htaccess</context></contextlist>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna<override>FileInfo</override>
e4e60c2f7ba8f12b687f588b89e413842e9f2d76igalic<compatibility>Available in Apache 2.0.30 and later</compatibility>
e4e60c2f7ba8f12b687f588b89e413842e9f2d76igalic
e4e60c2f7ba8f12b687f588b89e413842e9f2d76igalic<usage>
e4e60c2f7ba8f12b687f588b89e413842e9f2d76igalic
e4e60c2f7ba8f12b687f588b89e413842e9f2d76igalic <p>This directive controls whether requests that contain trailing
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor pathname information that follows an actual filename (or
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe non-existent file in an existing directory) will be accepted or
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe rejected. The trailing pathname information can be made
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe available to scripts in the <code>PATH_INFO</code> environment
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor variable.</p>
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe <p>For example, assume the location <code>/test/</code> points to
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe a directory that contains only the single file
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna <code>here.html</code>. Then requests for
4e9f8c5414e5fe39b5393641533edca65f6e8b91poirier <code>/test/here.html/more</code> and
4e9f8c5414e5fe39b5393641533edca65f6e8b91poirier <code>/test/nothere.html/more</code> both collect
4e9f8c5414e5fe39b5393641533edca65f6e8b91poirier <code>/more</code> as <code>PATH_INFO</code>.</p>
4e9f8c5414e5fe39b5393641533edca65f6e8b91poirier
4e9f8c5414e5fe39b5393641533edca65f6e8b91poirier <p>The three possible arguments for the
4e9f8c5414e5fe39b5393641533edca65f6e8b91poirier <directive>AcceptPathInfo</directive> directive are:</p>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna <dl>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna <dt><code>Off</code></dt><dd>A request will only be accepted if it
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna maps to a literal path that exists. Therefore a request with
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna trailing pathname information after the true filename such as
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna <code>/test/here.html/more</code> in the above example will return
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor a 404 NOT FOUND error.</dd>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor <dt><code>On</code></dt><dd>A request will be accepted if a
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor leading path component maps to a file that exists. The above
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna example <code>/test/here.html/more</code> will be accepted if
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor <code>/test/here.html</code> maps to a valid file.</dd>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna <dt><code>Default</code></dt><dd>The treatment of requests with
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna trailing pathname information is determined by the <a
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna href="/handler.html">handler</a> responsible for the request.
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna The core handler for normal files defaults to rejecting
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna <code>PATH_INFO</code> requests. Handlers that serve scripts, such as <a
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna href="mod_cgi.html">cgi-script</a> and <a
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna href="mod_isapi.html">isapi-isa</a>, generally accept
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna <code>PATH_INFO</code> by default.</dd>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna </dl>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna <p>The primary purpose of the <code>AcceptPathInfo</code>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor directive is to allow you to override the handler's choice of
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna accepting or rejecting <code>PATH_INFO</code>. This override is required,
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna for example, when you use a <a href="/filter.html">filter</a>, such
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna as <a href="mod_include.html">INCLUDES</a>, to generate content
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe based on <code>PATH_INFO</code>. The core handler would usually reject
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe the request, so you can use the following configuration to enable
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe such a script:</p>
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe <example>
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe &lt;Files "mypaths.shtml"&gt;<br />
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe <indent>
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe Options +Includes<br />
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe SetOutputFilter INCLUDES<br />
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe AcceptPathInfo On<br />
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe </indent>
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe &lt;/Files&gt;
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe </example>
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe</usage>
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe</directivesynopsis>
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe
e4e60c2f7ba8f12b687f588b89e413842e9f2d76igalic<directivesynopsis>
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe<name>AccessFileName</name>
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe<description>Name of the distributed configuration file</description>
5ae609a8a09239d20f48a4a95c4f21b713995babwrowe<syntax>AccessFileName <var>filename</var> [<var>filename</var>] ...</syntax>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor<default>AccessFileName .htaccess</default>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna<contextlist><context>server config</context><context>virtual host</context>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna</contextlist>
9f19223e8fb7b99f5f1cc02c8c3c2c6567793262rbowen
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna<usage>
7e8f5c6496b3825b6b128e2aacc4b1b09d28553dpquerna <p>While processing a request the server looks for
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the first existing configuration file from this list of names in
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive every directory of the path to the document, if distributed
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess configuration files are <a href="#allowoverride">enabled for that
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive directory</a>. For example:</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive AccessFileName .acl
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
18b4b0fd6056093002ddef488636bf5ebe415ef0erikabele
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen <p>before returning the document
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>/usr/local/web/index.html</code>, the server will read
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>/.acl</code>, <code>/usr/.acl</code>,
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>/usr/local/.acl</code> and <code>/usr/local/web/.acl</code>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive for directives, unless they have been disabled with</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;Directory /&gt;<br />
fb77c505254b6e9c925e23e734463e87574f8f40kess <indent>
fb77c505254b6e9c925e23e734463e87574f8f40kess AllowOverride None<br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </indent>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;/Directory&gt;
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><directive module="core">AllowOverride</directive></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><a href="/configuring.html">Configuration Files</a></seealso>
fb77c505254b6e9c925e23e734463e87574f8f40kess<seealso><a href="/howto/htaccess.html">.htaccess Files</a></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>AddDefaultCharset</name>
fb77c505254b6e9c925e23e734463e87574f8f40kess<description>Default charset parameter to be added when a response
80c4526970a11f37c0f8e3b82afdf03902dac3f3slivecontent-type is <code>text/plain</code> or <code>text/html</code></description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>AddDefaultCharset On|Off|<var>charset</var></syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<default>AddDefaultCharset Off</default>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<context>virtual host</context><context>directory</context>
fb77c505254b6e9c925e23e734463e87574f8f40kess<context>.htaccess</context></contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<override>FileInfo</override>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
fb77c505254b6e9c925e23e734463e87574f8f40kess <p>This directive specifies a default value for the media type
fb77c505254b6e9c925e23e734463e87574f8f40kess charset parameter (the name of a character encoding) to be added
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive to a response if and only if the response's content-type is either
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>text/plain</code> or <code>text/html</code>. This should override
fb77c505254b6e9c925e23e734463e87574f8f40kess any charset specified in the body of the response via a <code>META</code>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess element, though the exact behavior is often dependent on the user's client
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive configuration. A setting of <code>AddDefaultCharset Off</code>
bc4b55ec8f31569d606d5680d50189a355bcd7a6rbowen disables this functionality. <code>AddDefaultCharset On</code> enables
fb77c505254b6e9c925e23e734463e87574f8f40kess a default charset of <code>iso-8859-1</code>. Any other value is assumed
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive to be the <var>charset</var> to be used, which should be one of the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <a href="http://www.iana.org/assignments/character-sets">IANA registered
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive charset values</a> for use in MIME media types.
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive For example:</p>
fb77c505254b6e9c925e23e734463e87574f8f40kess
fb77c505254b6e9c925e23e734463e87574f8f40kess <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive AddDefaultCharset utf-8
fb77c505254b6e9c925e23e734463e87574f8f40kess </example>
fb77c505254b6e9c925e23e734463e87574f8f40kess
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p><directive>AddDefaultCharset</directive> should only be used when all
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd of the text resources to which it applies are known to be in that
130d299c4b2b15be45532a176604c71fdc7bea5bnd character encoding and it is too inconvenient to label their charset
130d299c4b2b15be45532a176604c71fdc7bea5bnd individually. One such example is to add the charset parameter
130d299c4b2b15be45532a176604c71fdc7bea5bnd to resources containing generated content, such as legacy CGI
130d299c4b2b15be45532a176604c71fdc7bea5bnd scripts, that might be vulnerable to cross-site scripting attacks
130d299c4b2b15be45532a176604c71fdc7bea5bnd due to user-provided data being included in the output. Note, however,
ef8e89e090461194ecadd31e8796a2c51e0531a2kess that a better solution is to just fix (or delete) those scripts, since
130d299c4b2b15be45532a176604c71fdc7bea5bnd setting a default charset does not protect users that have enabled
130d299c4b2b15be45532a176604c71fdc7bea5bnd the "auto-detect character encoding" feature on their browser.</p>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd</usage>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<seealso><directive module="mod_mime">AddCharset</directive></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>AddOutputFilterByType</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>assigns an output filter to a particular MIME-type</description>
003f0c9fda6664daf5092a0e42f65ede20098153slive<syntax>AddOutputFilterByType <var>filter</var>[;<var>filter</var>...]
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<var>MIME-type</var> [<var>MIME-type</var>] ...</syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<context>virtual host</context><context>directory</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<context>.htaccess</context></contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<override>FileInfo</override>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<compatibility>Available in Apache 2.0.33 and later</compatibility>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess
003f0c9fda6664daf5092a0e42f65ede20098153slive<usage>
003f0c9fda6664daf5092a0e42f65ede20098153slive <p>This directive activates a particular output <a
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess href="/filter.html">filter</a> for a request depending on the
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess response MIME-type.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <p>The following example uses the <code>DEFLATE</code> filter, which
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd is provided by <module>mod_deflate</module>. It will compress all
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd output (either static or dynamic) which is labeled as
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>text/html</code> or <code>text/plain</code> before it is sent
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive to the client.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive AddOutputFilterByType DEFLATE text/html text/plain
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
130d299c4b2b15be45532a176604c71fdc7bea5bnd <p>If you want the content to be processed by more than one filter, their
130d299c4b2b15be45532a176604c71fdc7bea5bnd names have to be separated by semicolons. It's also possible to use one
130d299c4b2b15be45532a176604c71fdc7bea5bnd <directive>AddOutputFilterByType</directive> directive for each of
130d299c4b2b15be45532a176604c71fdc7bea5bnd these filters.</p>
130d299c4b2b15be45532a176604c71fdc7bea5bnd
130d299c4b2b15be45532a176604c71fdc7bea5bnd <p>The configuration below causes all script output labeled as
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <code>text/html</code> to be processed at first by the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>INCLUDES</code> filter and then by the <code>DEFLATE</code>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive filter.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
1a3f62ca37273a15a06bb94a61d3c6fcf4bf38c9rbowen <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;Location /cgi-bin/&gt;<br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <indent>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive Options Includes<br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive AddOutputFilterByType INCLUDES;DEFLATE text/html<br />
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding </indent>
684f2a9a422185adda0692a1203c5ad6687fc5c5nd &lt;/Location&gt;
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd </example>
530eba85dbd41b8a0fa5255d3648d1440199a661slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <note type="warning"><title>Note</title>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>Enabling filters with <directive>AddOutputFilterByType</directive>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive may fail partially or completely in some cases. For example, no
003f0c9fda6664daf5092a0e42f65ede20098153slive filters are applied if the MIME-type could not be determined and falls
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive back to the <directive module="core">DefaultType</directive> setting,
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive even if the <directive module="core">DefaultType</directive> is the
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding same.</p>
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding <p>However, if you want to make sure, that the filters will be
684f2a9a422185adda0692a1203c5ad6687fc5c5nd applied, assign the content type to a resource explicitly, for
a8ce9095d102e43fecb81093a132b90b9a227f78kess example with <directive module="mod_mime">AddType</directive> or
684f2a9a422185adda0692a1203c5ad6687fc5c5nd <directive module="core">ForceType</directive>. Setting the
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding content type within a (non-nph) CGI script is also safe.</p>
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding <p>The by-type output filters are never applied on proxy requests.</p>
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding </note>
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding</usage>
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding<seealso><directive module="mod_mime">AddOutputFilter</directive></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><directive module="core">SetOutputFilter</directive></seealso>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<seealso><a href="/filter.html">filters</a></seealso>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd</directivesynopsis>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding<directivesynopsis>
684f2a9a422185adda0692a1203c5ad6687fc5c5nd<name>AllowEncodedSlashes</name>
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding<description>Determines whether encoded path separators in URLs are allowed to
843a03fe0b138a4c1f64cb90a014e9417ac30691fieldingbe passed through</description>
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding<syntax>AllowEncodedSlashes On|Off</syntax>
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding<default>AllowEncodedSlashes Off</default>
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding<contextlist><context>server config</context><context>virtual host</context>
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding</contextlist>
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding<compatibility>Available in Apache 2.0.46 and later</compatibility>
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The <directive>AllowEncodedSlashes</directive> directive allows URLs
843a03fe0b138a4c1f64cb90a014e9417ac30691fielding which contain encoded path separators (<code>%2F</code> for <code>/</code>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive and additionally <code>%5C</code> for <code>\</code> on according systems)
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive to be used. Normally such URLs are refused with a 404 (Not found) error.</p>
77ead9e0262e4f08ec336d1a65b2edef7705c839nd
77ead9e0262e4f08ec336d1a65b2edef7705c839nd <p>Turning <directive>AllowEncodedSlashes</directive> <code>On</code> is
9583adab6bc4b3758e41963c905d9dad9f067131nd mostly useful when used in conjunction with <code>PATH_INFO</code>.</p>
77ead9e0262e4f08ec336d1a65b2edef7705c839nd
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier <note><title>Note</title>
77ead9e0262e4f08ec336d1a65b2edef7705c839nd <p>Allowing encoded slashes does <em>not</em> imply <em>decoding</em>.
77ead9e0262e4f08ec336d1a65b2edef7705c839nd Occurrences of <code>%2F</code> or <code>%5C</code> (<em>only</em> on
77ead9e0262e4f08ec336d1a65b2edef7705c839nd according systems) will be left as such in the otherwise decoded URL
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier string.</p>
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier </note>
77ead9e0262e4f08ec336d1a65b2edef7705c839nd</usage>
77ead9e0262e4f08ec336d1a65b2edef7705c839nd<seealso><directive module="core">AcceptPathInfo</directive></seealso>
77ead9e0262e4f08ec336d1a65b2edef7705c839nd</directivesynopsis>
77ead9e0262e4f08ec336d1a65b2edef7705c839nd
77ead9e0262e4f08ec336d1a65b2edef7705c839nd<directivesynopsis>
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier<name>AllowOverride</name>
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier<description>Types of directives that are allowed in
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier<code>.htaccess</code> files</description>
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier<syntax>AllowOverride All|None|<var>directive-type</var>
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier[<var>directive-type</var>] ...</syntax>
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier<default>AllowOverride All</default>
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier<contextlist><context>directory</context></contextlist>
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier<usage>
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier <p>When the server finds an <code>.htaccess</code> file (as
77ead9e0262e4f08ec336d1a65b2edef7705c839nd specified by <directive module="core">AccessFileName</directive>)
77ead9e0262e4f08ec336d1a65b2edef7705c839nd it needs to know which directives declared in that file can override
77ead9e0262e4f08ec336d1a65b2edef7705c839nd earlier configuration directives.</p>
77ead9e0262e4f08ec336d1a65b2edef7705c839nd
77ead9e0262e4f08ec336d1a65b2edef7705c839nd <note><title>Only available in &lt;Directory&gt; sections</title>
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier <directive>AllowOverride</directive> is valid only in
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier <directive type="section" module="core">Directory</directive>
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier sections specified without regular expressions, not in <directive
77ead9e0262e4f08ec336d1a65b2edef7705c839nd type="section" module="core">Location</directive>, <directive
77ead9e0262e4f08ec336d1a65b2edef7705c839nd module="core" type="section">DirectoryMatch</directive> or
77ead9e0262e4f08ec336d1a65b2edef7705c839nd <directive type="section" module="core">Files</directive> sections.
77ead9e0262e4f08ec336d1a65b2edef7705c839nd </note>
77ead9e0262e4f08ec336d1a65b2edef7705c839nd
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>When this directive is set to <code>None</code>, then
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <a href="#accessfilename">.htaccess</a> files are completely ignored.
003f0c9fda6664daf5092a0e42f65ede20098153slive In this case, the server will not even attempt to read
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <code>.htaccess</code> files in the filesystem.</p>
fb77c505254b6e9c925e23e734463e87574f8f40kess
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <p>When this directive is set to <code>All</code>, then any
4ea161d94782fa56f4b36d496f35ff8577c43065covener directive which has the .htaccess <a
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive href="directive-dict.html#Context">Context</a> is allowed in
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>.htaccess</code> files.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
fb77c505254b6e9c925e23e734463e87574f8f40kess <p>The <var>directive-type</var> can be one of the following
fb77c505254b6e9c925e23e734463e87574f8f40kess groupings of directives.</p>
fb77c505254b6e9c925e23e734463e87574f8f40kess
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess <dl>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <dt>AuthConfig</dt>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess
10673857794a4b3d9568ca2d983722a87ed352f1rbowen <dd>
fb77c505254b6e9c925e23e734463e87574f8f40kess
b12b918ae6baf9c5762ed61b7393d0e2198378c0nd Allow use of the authorization directives (<directive
b12b918ae6baf9c5762ed61b7393d0e2198378c0nd module="mod_authn_dbm">AuthDBMGroupFile</directive>,
b12b918ae6baf9c5762ed61b7393d0e2198378c0nd <directive module="mod_authn_dbm">AuthDBMUserFile</directive>,
b12b918ae6baf9c5762ed61b7393d0e2198378c0nd <directive module="mod_authz_groupfile">AuthGroupFile</directive>,
10673857794a4b3d9568ca2d983722a87ed352f1rbowen <directive module="core">AuthName</directive>,
10673857794a4b3d9568ca2d983722a87ed352f1rbowen <directive module="core">AuthType</directive>, <directive
113961f0559eb026ea0d379cb7350f82bc09d710druggeri module="mod_authn_file">AuthUserFile</directive>, <directive
113961f0559eb026ea0d379cb7350f82bc09d710druggeri module="core">Require</directive>, <em>etc.</em>).</dd>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri
113961f0559eb026ea0d379cb7350f82bc09d710druggeri <dt>FileInfo</dt>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <dd>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive Allow use of the directives controlling document types (<directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="core">DefaultType</directive>, <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="core">ErrorDocument</directive>, <directive
fb77c505254b6e9c925e23e734463e87574f8f40kess module="core">ForceType</directive>, <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="mod_negotiation">LanguagePriority</directive>,
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <directive module="core">SetHandler</directive>, <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="core">SetInputFilter</directive>, <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="core">SetOutputFilter</directive>, and
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <module>mod_mime</module> Add* and Remove*
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive directives, <em>etc.</em>).</dd>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <dt>Indexes</dt>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <dd>
1f53e295ebd19aed1767d12da7abfab9936c148cjerenkrantz Allow use of the directives controlling directory indexing
1f53e295ebd19aed1767d12da7abfab9936c148cjerenkrantz (<directive
9ed9eaf871c58d281af02e76125ceadb5060afa5nd module="mod_autoindex">AddDescription</directive>,
9cd3b05d7b70f07a742bbaf548fa4fa2bdbe5ce6noodl <directive module="mod_autoindex">AddIcon</directive>, <directive
9cd3b05d7b70f07a742bbaf548fa4fa2bdbe5ce6noodl module="mod_autoindex">AddIconByEncoding</directive>,
1f53e295ebd19aed1767d12da7abfab9936c148cjerenkrantz <directive module="mod_autoindex">AddIconByType</directive>,
9cd3b05d7b70f07a742bbaf548fa4fa2bdbe5ce6noodl <directive module="mod_autoindex">DefaultIcon</directive>, <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="mod_dir">DirectoryIndex</directive>, <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="mod_autoindex">FancyIndexing</directive>, <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="mod_autoindex">HeaderName</directive>, <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="mod_autoindex">IndexIgnore</directive>, <directive
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding module="mod_autoindex">IndexOptions</directive>, <directive
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding module="mod_autoindex">ReadmeName</directive>,
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding <em>etc.</em>).</dd>
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding <dt>Limit</dt>
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding <dd>
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding Allow use of the directives controlling host access (<directive
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding module="mod_authz_host">Allow</directive>, <directive
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem module="mod_authz_host">Deny</directive> and <directive
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem module="mod_authz_host">Order</directive>).</dd>
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem <dt>Options[=<var>Option</var>,...]</dt>
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem <dd>
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem Allow use of the directives controlling specific directory
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem features (<directive module="core">Options</directive> and
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem <directive module="mod_include">XBitHack</directive>).
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem An equal sign may be given followed by a comma (but no spaces)
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem separated lists of options that may be set using the <directive
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem module="core">Options</directive> command.</dd>
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem </dl>
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem <p>Example:</p>
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem <example>
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem AllowOverride AuthConfig Indexes
5528d1a30ae8560e2d7a96d734ffe31500dc6113rpluem </example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>In the example above all directives that are neither in the group
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>AuthConfig</code> nor <code>Indexes</code> cause an internal
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive server error.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><directive module="core">AccessFileName</directive></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><a href="/configuring.html">Configuration Files</a></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><a href="/howto/htaccess.html">.htaccess Files</a></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>AuthName</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Authorization realm for use in HTTP
80c4526970a11f37c0f8e3b82afdf03902dac3f3sliveauthentication</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>AuthName <var>auth-domain</var></syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>directory</context><context>.htaccess</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<override>AuthConfig</override>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>This directive sets the name of the authorization realm for a
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive directory. This realm is given to the client so that the user
9ed9eaf871c58d281af02e76125ceadb5060afa5nd knows which username and password to send.
9ed9eaf871c58d281af02e76125ceadb5060afa5nd <directive>AuthName</directive> takes a single argument; if the
9ed9eaf871c58d281af02e76125ceadb5060afa5nd realm name contains spaces, it must be enclosed in quotation
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive marks. It must be accompanied by <directive
103a93c625bcde1a6a7a5155b64dcda36f612180pquerna module="core">AuthType</directive> and <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="core">Require</directive> directives, and directives such
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive as <directive module="mod_authn_file">AuthUserFile</directive> and
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <directive module="mod_authz_groupfile">AuthGroupFile</directive> to
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive work.</p>
103a93c625bcde1a6a7a5155b64dcda36f612180pquerna
103a93c625bcde1a6a7a5155b64dcda36f612180pquerna <p>For example:</p>
f23fb63b05f89f47d7a3099491f2c68dcce432e9kess
9970ad80054f477c708284a0d030a5bd26e412a9covener <example>
9970ad80054f477c708284a0d030a5bd26e412a9covener AuthName "Top Secret"
9970ad80054f477c708284a0d030a5bd26e412a9covener </example>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <p>The string provided for the <code>AuthName</code> is what will
9970ad80054f477c708284a0d030a5bd26e412a9covener appear in the password dialog provided by most browsers.</p>
9970ad80054f477c708284a0d030a5bd26e412a9covener</usage>
9970ad80054f477c708284a0d030a5bd26e412a9covener<seealso><a
9970ad80054f477c708284a0d030a5bd26e412a9covener href="/howto/auth.html">Authentication, Authorization, and
9970ad80054f477c708284a0d030a5bd26e412a9covener Access Control</a></seealso>
9970ad80054f477c708284a0d030a5bd26e412a9covener</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>AuthType</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Type of user authentication</description>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<syntax>AuthType Basic|Digest</syntax>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<contextlist><context>directory</context><context>.htaccess</context>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd</contextlist>
b12b918ae6baf9c5762ed61b7393d0e2198378c0nd<override>AuthConfig</override>
b12b918ae6baf9c5762ed61b7393d0e2198378c0nd
b12b918ae6baf9c5762ed61b7393d0e2198378c0nd<usage>
b12b918ae6baf9c5762ed61b7393d0e2198378c0nd <p>This directive selects the type of user authentication for a
da637bcae7b6e150470e701af29da5604a34a17erbowen directory. Only <code>Basic</code> and <code>Digest</code> are
da637bcae7b6e150470e701af29da5604a34a17erbowen currently implemented.
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor
da637bcae7b6e150470e701af29da5604a34a17erbowen It must be accompanied by <directive
da637bcae7b6e150470e701af29da5604a34a17erbowen module="core">AuthName</directive> and <directive
da637bcae7b6e150470e701af29da5604a34a17erbowen module="core">Require</directive> directives, and directives such
da637bcae7b6e150470e701af29da5604a34a17erbowen as <directive module="mod_authn_file">AuthUserFile</directive> and
da637bcae7b6e150470e701af29da5604a34a17erbowen <directive module="mod_authz_groupfile">AuthGroupFile</directive> to
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive work.</p>
7802d43d20007fa575e43b6ae77d5177ceffdb71sf</usage>
7802d43d20007fa575e43b6ae77d5177ceffdb71sf<seealso><a href="/howto/auth.html">Authentication, Authorization,
7802d43d20007fa575e43b6ae77d5177ceffdb71sfand Access Control</a></seealso>
7802d43d20007fa575e43b6ae77d5177ceffdb71sf</directivesynopsis>
86120957a14f91da0a1a103eaf4d7710b1dd9e2asf
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<name>CGIMapExtension</name>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<description>Technique for locating the interpreter for CGI
113961f0559eb026ea0d379cb7350f82bc09d710druggeriscripts</description>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<syntax>CGIMapExtension <var>cgi-path</var> <var>.extension</var></syntax>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<contextlist><context>directory</context><context>.htaccess</context>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri</contextlist>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<override>FileInfo</override>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<compatibility>NetWare only</compatibility>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<usage>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri <p>This directive is used to control how Apache finds the
113961f0559eb026ea0d379cb7350f82bc09d710druggeri interpreter used to run CGI scripts. For example, setting
113961f0559eb026ea0d379cb7350f82bc09d710druggeri <code>CGIMapExtension sys:\foo.nlm .foo</code> will
113961f0559eb026ea0d379cb7350f82bc09d710druggeri cause all CGI script files with a <code>.foo</code> extension to
113961f0559eb026ea0d379cb7350f82bc09d710druggeri be passed to the FOO interpreter.</p>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri</usage>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri</directivesynopsis>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<directivesynopsis>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<name>ContentDigest</name>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<description>Enables the generation of <code>Content-MD5</code> HTTP Response
113961f0559eb026ea0d379cb7350f82bc09d710druggeriheaders</description>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<syntax>ContentDigest On|Off</syntax>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<default>ContentDigest Off</default>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<contextlist><context>server config</context><context>virtual host</context>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<context>directory</context><context>.htaccess</context>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri</contextlist>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<override>Options</override>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<status>Experimental</status>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri
113961f0559eb026ea0d379cb7350f82bc09d710druggeri<usage>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri <p>This directive enables the generation of
113961f0559eb026ea0d379cb7350f82bc09d710druggeri <code>Content-MD5</code> headers as defined in RFC1864
113961f0559eb026ea0d379cb7350f82bc09d710druggeri respectively RFC2068.</p>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri
113961f0559eb026ea0d379cb7350f82bc09d710druggeri <p>MD5 is an algorithm for computing a "message digest"
113961f0559eb026ea0d379cb7350f82bc09d710druggeri (sometimes called "fingerprint") of arbitrary-length data, with
113961f0559eb026ea0d379cb7350f82bc09d710druggeri a high degree of confidence that any alterations in the data
113961f0559eb026ea0d379cb7350f82bc09d710druggeri will be reflected in alterations in the message digest.</p>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri
113961f0559eb026ea0d379cb7350f82bc09d710druggeri <p>The <code>Content-MD5</code> header provides an end-to-end
113961f0559eb026ea0d379cb7350f82bc09d710druggeri message integrity check (MIC) of the entity-body. A proxy or
113961f0559eb026ea0d379cb7350f82bc09d710druggeri client may check this header for detecting accidental
113961f0559eb026ea0d379cb7350f82bc09d710druggeri modification of the entity-body in transit. Example header:</p>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri
113961f0559eb026ea0d379cb7350f82bc09d710druggeri <example>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri Content-MD5: AuLb7Dp1rqtRtxz2m9kRpA==
113961f0559eb026ea0d379cb7350f82bc09d710druggeri </example>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri
113961f0559eb026ea0d379cb7350f82bc09d710druggeri <p>Note that this can cause performance problems on your server
113961f0559eb026ea0d379cb7350f82bc09d710druggeri since the message digest is computed on every request (the
113961f0559eb026ea0d379cb7350f82bc09d710druggeri values are not cached).</p>
113961f0559eb026ea0d379cb7350f82bc09d710druggeri
113961f0559eb026ea0d379cb7350f82bc09d710druggeri <p><code>Content-MD5</code> is only sent for documents served
113961f0559eb026ea0d379cb7350f82bc09d710druggeri by the <module>core</module>, and not by any module. For example,
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive SSI documents, output from CGI scripts, and byte range responses
113961f0559eb026ea0d379cb7350f82bc09d710druggeri do not have this header.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
54bcd0e21a5c79158afd3b78bf707a493a5fb33crbowen</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
4c7bdb15764021d39e486adb7bc2166d3f683773bnicholes<name>DefaultType</name>
4c7bdb15764021d39e486adb7bc2166d3f683773bnicholes<description>MIME content-type that will be sent if the
fb77c505254b6e9c925e23e734463e87574f8f40kessserver cannot determine a type in any other way</description>
4c7bdb15764021d39e486adb7bc2166d3f683773bnicholes<syntax>DefaultType <var>MIME-type</var></syntax>
fb77c505254b6e9c925e23e734463e87574f8f40kess<default>DefaultType text/plain</default>
4c7bdb15764021d39e486adb7bc2166d3f683773bnicholes<contextlist><context>server config</context><context>virtual host</context>
4c7bdb15764021d39e486adb7bc2166d3f683773bnicholes<context>directory</context><context>.htaccess</context>
4c7bdb15764021d39e486adb7bc2166d3f683773bnicholes</contextlist>
4c7bdb15764021d39e486adb7bc2166d3f683773bnicholes<override>FileInfo</override>
4c7bdb15764021d39e486adb7bc2166d3f683773bnicholes
4c7bdb15764021d39e486adb7bc2166d3f683773bnicholes<usage>
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen <p>There will be times when the server is asked to provide a
fb77c505254b6e9c925e23e734463e87574f8f40kess document whose type cannot be determined by its MIME types
fb77c505254b6e9c925e23e734463e87574f8f40kess mappings.</p>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <p>The server must inform the client of the content-type of the
4c7bdb15764021d39e486adb7bc2166d3f683773bnicholes document, so in the event of an unknown type it uses the
4c7bdb15764021d39e486adb7bc2166d3f683773bnicholes <code>DefaultType</code>. For example:</p>
4c7bdb15764021d39e486adb7bc2166d3f683773bnicholes
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive DefaultType image/gif
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess </example>
fb77c505254b6e9c925e23e734463e87574f8f40kess
fb77c505254b6e9c925e23e734463e87574f8f40kess <p>would be appropriate for a directory which contained many GIF
fb77c505254b6e9c925e23e734463e87574f8f40kess images with filenames missing the <code>.gif</code> extension.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>Note that unlike <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="core">ForceType</directive>, this directive only
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive provides the default mime-type. All other mime-type definitions,
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive including filename extensions, that might identify the media type
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive will override this default.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
5bb5fba250bf526bc51d13b25378d54acb93c1cbnoodl<directivesynopsis type="section">
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>Directory</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Enclose a group of directives that apply only to the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slivenamed file-system directory and sub-directories</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>&lt;Directory <var>directory-path</var>&gt;
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive... &lt;/Directory&gt;</syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context><context>virtual host</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p><directive type="section">Directory</directive> and
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <code>&lt;/Directory&gt;</code> are used to enclose a group of
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd directives that will apply only to the named directory and
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd sub-directories of that directory. Any directive that is allowed
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd in a directory context may be used. <var>Directory-path</var> is
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive either the full path to a directory, or a wild-card string using
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive Unix shell-style matching. In a wild-card string, <code>?</code> matches
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive any single character, and <code>*</code> matches any sequences of
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive characters. You may also use <code>[]</code> character ranges. None
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive of the wildcards match a `/' character, so <code>&lt;Directory
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive /*/public_html&gt;</code> will not match
fb77c505254b6e9c925e23e734463e87574f8f40kess <code>/home/user/public_html</code>, but <code>&lt;Directory
fb77c505254b6e9c925e23e734463e87574f8f40kess /home/*/public_html&gt;</code> will match. Example:</p>
fb77c505254b6e9c925e23e734463e87574f8f40kess
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;Directory /usr/local/httpd/htdocs&gt;<br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <indent>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive Options Indexes FollowSymLinks<br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </indent>
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding &lt;/Directory&gt;
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding </example>
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding <note>
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding <p>Be careful with the <var>directory-path</var> arguments:
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding They have to literally match the filesystem path which Apache uses
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding to access the files. Directives applied to a particular
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>&lt;Directory&gt;</code> will not apply to files accessed from
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive that same directory via a different path, such as via different symbolic
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive links.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </note>
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>Extended regular
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive expressions can also be used, with the addition of the
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding <code>~</code> character. For example:</p>
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;Directory ~ "^/www/.*/[0-9]{3}"&gt;
e4881891552e185a7408318dfc7f62ebabe73cf6niq </example>
e4881891552e185a7408318dfc7f62ebabe73cf6niq
e4881891552e185a7408318dfc7f62ebabe73cf6niq <p>would match directories in <code>/www/</code> that consisted of
e4881891552e185a7408318dfc7f62ebabe73cf6niq three numbers.</p>
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding <p>If multiple (non-regular expression) <directive
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding type="section">Directory</directive> sections
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding match the directory (or one of its parents) containing a document,
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding then the directives are applied in the order of shortest match
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding first, interspersed with the directives from the <a
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding href="#accessfilename">.htaccess</a> files. For example,
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding with</p>
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;Directory /&gt;<br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <indent>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive AllowOverride None<br />
6e483e0b8aa3fa574288a7452221392a03e2b9a3noodl </indent>
6e483e0b8aa3fa574288a7452221392a03e2b9a3noodl &lt;/Directory&gt;<br />
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf <br />
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf &lt;Directory /home/&gt;<br />
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf <indent>
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf AllowOverride FileInfo<br />
6e483e0b8aa3fa574288a7452221392a03e2b9a3noodl </indent>
6e483e0b8aa3fa574288a7452221392a03e2b9a3noodl &lt;/Directory&gt;
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf </example>
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf <p>for access to the document <code>/home/web/dir/doc.html</code>
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf the steps are:</p>
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf <ul>
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf <li>Apply directive <code>AllowOverride None</code>
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf (disabling <code>.htaccess</code> files).</li>
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf <li>Apply directive <code>AllowOverride FileInfo</code> (for
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf directory <code>/home</code>).</li>
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf <li>Apply any <code>FileInfo</code> directives in
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf <code>/home/.htaccess</code>, <code>/home/web/.htaccess</code> and
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf <code>/home/web/dir/.htaccess</code> in that order.</li>
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf </ul>
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf <p>Regular expressions are not considered until after all of the
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf normal sections have been applied. Then all of the regular
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf expressions are tested in the order they appeared in the
141fd59714368d3bbe3a3d8f5b8dc8a516c48f9fsf configuration file. For example, with</p>
cba8c0896ba04d42cf9a9e50df5040fd6bae14a4sf
cba8c0896ba04d42cf9a9e50df5040fd6bae14a4sf <example>
cba8c0896ba04d42cf9a9e50df5040fd6bae14a4sf &lt;Directory ~ abc$&gt;<br />
6e483e0b8aa3fa574288a7452221392a03e2b9a3noodl <indent>
6e483e0b8aa3fa574288a7452221392a03e2b9a3noodl # ... directives here ...<br />
6e483e0b8aa3fa574288a7452221392a03e2b9a3noodl </indent>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;/Directory&gt;
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
898475b582dd849de5915df0f2089b72ed8b2e2bcovener <p>the regular expression section won't be considered until after
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd all normal <directive type="section">Directory</directive>s and
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>.htaccess</code> files have been applied. Then the regular
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive expression will match on <code>/home/abc/public_html/abc</code> and
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the corresponding <directive type="section">Directory</directive> will
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive be applied.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p><strong>Note that the default Apache access for
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>&lt;Directory /&gt;</code> is <code>Allow from All</code>.
898475b582dd849de5915df0f2089b72ed8b2e2bcovener This means that Apache will serve any file mapped from an URL. It is
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor recommended that you change this with a block such
898475b582dd849de5915df0f2089b72ed8b2e2bcovener as</strong></p>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
003f0c9fda6664daf5092a0e42f65ede20098153slive <example>
fb77c505254b6e9c925e23e734463e87574f8f40kess &lt;Directory /&gt;<br />
fb77c505254b6e9c925e23e734463e87574f8f40kess <indent>
fb77c505254b6e9c925e23e734463e87574f8f40kess Order Deny,Allow<br />
fb77c505254b6e9c925e23e734463e87574f8f40kess Deny from All<br />
003f0c9fda6664daf5092a0e42f65ede20098153slive </indent>
003f0c9fda6664daf5092a0e42f65ede20098153slive &lt;/Directory&gt;
003f0c9fda6664daf5092a0e42f65ede20098153slive </example>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
130d299c4b2b15be45532a176604c71fdc7bea5bnd <p><strong>and then override this for directories you
130d299c4b2b15be45532a176604c71fdc7bea5bnd <em>want</em> accessible. See the <a
130d299c4b2b15be45532a176604c71fdc7bea5bnd href="/misc/security_tips.html">Security Tips</a> page for more
130d299c4b2b15be45532a176604c71fdc7bea5bnd details.</strong></p>
130d299c4b2b15be45532a176604c71fdc7bea5bnd
130d299c4b2b15be45532a176604c71fdc7bea5bnd <p>The directory sections occur in the <code>httpd.conf</code> file.
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <directive type="section">Directory</directive> directives
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd cannot nest, and cannot appear in a <directive module="core"
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd type="section">Limit</directive> or <directive module="core"
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd type="section">LimitExcept</directive> section.</p>
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen</usage>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<seealso><a href="/sections.html">How &lt;Directory&gt;,
fb77c505254b6e9c925e23e734463e87574f8f40kess &lt;Location&gt; and &lt;Files&gt; sections work</a> for an
fb77c505254b6e9c925e23e734463e87574f8f40kess explanation of how these different sections are combined when a
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd request is received</seealso>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd</directivesynopsis>
b06660a3ed3d885e15d99c0209a46c4657df33fbrbowen
030108b1816bcda3d925df65357feabdce83bc94slive<directivesynopsis type="section">
030108b1816bcda3d925df65357feabdce83bc94slive<name>DirectoryMatch</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Enclose directives that apply to
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cndfile-system directories matching a regular expression and their
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cndsubdirectories</description>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<syntax>&lt;DirectoryMatch <var>regex</var>&gt;
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd... &lt;/DirectoryMatch&gt;</syntax>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<contextlist><context>server config</context><context>virtual host</context>
fb77c505254b6e9c925e23e734463e87574f8f40kess</contextlist>
fb77c505254b6e9c925e23e734463e87574f8f40kess
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess <p><directive type="section">DirectoryMatch</directive> and
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <code>&lt;/DirectoryMatch&gt;</code> are used to enclose a group
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess of directives which will apply only to the named directory and
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive sub-directories of that directory, the same as <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="core" type="section">Directory</directive>. However, it
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive takes as an argument a regular expression. For example:</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
130d299c4b2b15be45532a176604c71fdc7bea5bnd &lt;DirectoryMatch "^/www/(.+/)?[0-9]{3}"&gt;
130d299c4b2b15be45532a176604c71fdc7bea5bnd </example>
130d299c4b2b15be45532a176604c71fdc7bea5bnd
130d299c4b2b15be45532a176604c71fdc7bea5bnd <p>would match directories in <code>/www/</code> that consisted of three
130d299c4b2b15be45532a176604c71fdc7bea5bnd numbers.</p>
130d299c4b2b15be45532a176604c71fdc7bea5bnd</usage>
130d299c4b2b15be45532a176604c71fdc7bea5bnd<seealso><directive type="section" module="core">Directory</directive> for
cdffd1263801c18587cefdebc4510df486d5906brbowena description of how regular expressions are mixed in with normal
130d299c4b2b15be45532a176604c71fdc7bea5bnd<directive type="section">Directory</directive>s</seealso>
130d299c4b2b15be45532a176604c71fdc7bea5bnd<seealso><a
130d299c4b2b15be45532a176604c71fdc7bea5bndhref="/sections.html">How &lt;Directory&gt;, &lt;Location&gt; and
130d299c4b2b15be45532a176604c71fdc7bea5bnd&lt;Files&gt; sections work</a> for an explanation of how these different
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cndsections are combined when a request is received</seealso>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>DocumentRoot</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Directory that forms the main document tree visible
80c4526970a11f37c0f8e3b82afdf03902dac3f3slivefrom the web</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>DocumentRoot <var>directory-path</var></syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<default>DocumentRoot /usr/local/apache/htdocs</default>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context><context>virtual host</context>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess</contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess<usage>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess <p>This directive sets the directory from which <program>httpd</program>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess will serve files. Unless matched by a directive like <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="mod_alias">Alias</directive>, the server appends the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive path from the requested URL to the document root to make the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive path to the document. Example:</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive DocumentRoot /usr/web
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
130d299c4b2b15be45532a176604c71fdc7bea5bnd
130d299c4b2b15be45532a176604c71fdc7bea5bnd <p>then an access to
130d299c4b2b15be45532a176604c71fdc7bea5bnd <code>http://www.my.host.com/index.html</code> refers to
130d299c4b2b15be45532a176604c71fdc7bea5bnd <code>/usr/web/index.html</code>. If the <var>directory-path</var> is
130d299c4b2b15be45532a176604c71fdc7bea5bnd not absolute then it is assumed to be relative to the <directive
130d299c4b2b15be45532a176604c71fdc7bea5bnd module="core">ServerRoot</directive>.</p>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The <directive>DocumentRoot</directive> should be specified without
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess a trailing slash.</p>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess</usage>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess<seealso><a href="/urlmapping.html">Mapping URLs to Filesystem
6b64034fa2a644ba291c484c0c01c7df5b8d982ckessLocation</a></seealso>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess</directivesynopsis>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen<name>EnableMMAP</name>
4e10c61d7f924071cad435df940a8f325015b2d3rbowen<description>Use memory-mapping to read files during delivery</description>
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen<syntax>EnableMMAP On|Off</syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<default>EnableMMAP On</default>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context><context>virtual host</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<context>directory</context><context>.htaccess</context>
130d299c4b2b15be45532a176604c71fdc7bea5bnd</contextlist>
130d299c4b2b15be45532a176604c71fdc7bea5bnd<override>FileInfo</override>
130d299c4b2b15be45532a176604c71fdc7bea5bnd
4e10c61d7f924071cad435df940a8f325015b2d3rbowen<usage>
130d299c4b2b15be45532a176604c71fdc7bea5bnd <p>This directive controls whether the <program>httpd</program> may use
130d299c4b2b15be45532a176604c71fdc7bea5bnd memory-mapping if it needs to read the contents of a file during
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd delivery. By default, when the handling of a request requires
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive access to the data within a file -- for example, when delivering a
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive server-parsed file using <module>mod_include</module> -- Apache
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive memory-maps the file if the OS supports it.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
fb77c505254b6e9c925e23e734463e87574f8f40kess <p>This memory-mapping sometimes yields a performance improvement.
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive But in some environments, it is better to disable the memory-mapping
fb77c505254b6e9c925e23e734463e87574f8f40kess to prevent operational problems:</p>
fb77c505254b6e9c925e23e734463e87574f8f40kess
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <ul>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <li>On some multiprocessor systems, memory-mapping can reduce the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive performance of the <program>httpd</program>.</li>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <li>With an NFS-mounted <directive module="core">DocumentRoot</directive>,
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess the <program>httpd</program> may crash due to a segmentation fault if a file
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess is deleted or truncated while the <program>httpd</program> has it
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive memory-mapped.</li>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </ul>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>For server configurations that are vulnerable to these problems,
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive you should disable memory-mapping of delivered files by specifying:</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <example>
898475b582dd849de5915df0f2089b72ed8b2e2bcovener EnableMMAP Off
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd </example>
7b5535ed88e0f561b3bfb3330137bd804846afd4slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>For NFS mounted files, this feature may be disabled explicitly for
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the offending files by specifying:</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;Directory "/path-to-nfs-files"&gt;
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <indent>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor EnableMMAP Off
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor </indent>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor &lt;/Directory&gt;
fa1c7ce09927decc1eecd1e9a35cc5331078a052covener </example>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd</usage>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd</directivesynopsis>
6954edc623ca2c179eb5b33e97e4304d06fd649frbowen
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>EnableSendfile</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Use the kernel sendfile support to deliver files to the client</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>EnableSendfile On|Off</syntax>
fa1c7ce09927decc1eecd1e9a35cc5331078a052covener<default>EnableSendfile On</default>
fa1c7ce09927decc1eecd1e9a35cc5331078a052covener<contextlist><context>server config</context><context>virtual host</context>
fa1c7ce09927decc1eecd1e9a35cc5331078a052covener<context>directory</context><context>.htaccess</context>
fa1c7ce09927decc1eecd1e9a35cc5331078a052covener</contextlist>
fa1c7ce09927decc1eecd1e9a35cc5331078a052covener<override>FileInfo</override>
fa1c7ce09927decc1eecd1e9a35cc5331078a052covener<compatibility>Available in version 2.0.44 and later</compatibility>
fa1c7ce09927decc1eecd1e9a35cc5331078a052covener
fa1c7ce09927decc1eecd1e9a35cc5331078a052covener<usage>
fa1c7ce09927decc1eecd1e9a35cc5331078a052covener <p>This directive controls whether <program>httpd</program> may use the
fa1c7ce09927decc1eecd1e9a35cc5331078a052covener sendfile support from the kernel to transmit file contents to the client.
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor By default, when the handling of a request requires no access
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor to the data within a file -- for example, when delivering a
fa1c7ce09927decc1eecd1e9a35cc5331078a052covener static file -- Apache uses sendfile to deliver the file contents
fa1c7ce09927decc1eecd1e9a35cc5331078a052covener without ever reading the file if the OS supports it.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>This sendfile mechanism avoids separate read and send operations,
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive and buffer allocations. But on some platforms or within some
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess filesystems, it is better to disable this feature to avoid
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive operational problems:</p>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <ul>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <li>Some platforms may have broken sendfile support that the build
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive system did not detect, especially if the binaries were built on
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive another box and moved to such a machine with broken sendfile
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive support.</li>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <li>On Linux the use of sendfile triggers TCP-checksum
003f0c9fda6664daf5092a0e42f65ede20098153slive offloading bugs on certain networking cards when using IPv6.</li>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <li>With a network-mounted <directive
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd module="core">DocumentRoot</directive> (e.g., NFS or SMB),
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the kernel may be unable to serve the network file through
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive its own cache.</li>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </ul>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>For server configurations that are vulnerable to these problems,
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd you should disable this feature by specifying:</p>
fb77c505254b6e9c925e23e734463e87574f8f40kess
fb77c505254b6e9c925e23e734463e87574f8f40kess <example>
fb77c505254b6e9c925e23e734463e87574f8f40kess EnableSendfile Off
fb77c505254b6e9c925e23e734463e87574f8f40kess </example>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <p>For NFS or SMB mounted files, this feature may be disabled explicitly
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd for the offending files by specifying:</p>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;Directory "/path-to-nfs-files"&gt;
ffe8ed2cd88be2c415ddef11f50394c52df9190ctrawick <indent>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor EnableSendfile Off
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor </indent>
c68acc9d712af079afa2bd1a5a4aeef9a3ea573ckess &lt;/Directory&gt;
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
1b01d1ee11c612226cb3141eed4581dc179266c1rbowen<directivesynopsis>
1b01d1ee11c612226cb3141eed4581dc179266c1rbowen<name>ErrorDocument</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>What the server will return to the client
80c4526970a11f37c0f8e3b82afdf03902dac3f3slivein case of an error</description>
6b15044d54a096e6323ff1540f1a491e8de7622dsf<syntax>ErrorDocument <var>error-code</var> <var>document</var></syntax>
6b15044d54a096e6323ff1540f1a491e8de7622dsf<contextlist><context>server config</context><context>virtual host</context>
6b15044d54a096e6323ff1540f1a491e8de7622dsf<context>directory</context><context>.htaccess</context>
6b15044d54a096e6323ff1540f1a491e8de7622dsf</contextlist>
6b15044d54a096e6323ff1540f1a491e8de7622dsf<override>FileInfo</override>
6b15044d54a096e6323ff1540f1a491e8de7622dsf<compatibility>Quoting syntax for text messages is different in Apache
6b15044d54a096e6323ff1540f1a491e8de7622dsf2.0</compatibility>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf<usage>
6b15044d54a096e6323ff1540f1a491e8de7622dsf <p>In the event of a problem or error, Apache can be configured
6b15044d54a096e6323ff1540f1a491e8de7622dsf to do one of four things,</p>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf <ol>
6b15044d54a096e6323ff1540f1a491e8de7622dsf <li>output a simple hardcoded error message</li>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf <li>output a customized message</li>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf <li>redirect to a local <var>URL-path</var> to handle the
6b15044d54a096e6323ff1540f1a491e8de7622dsf problem/error</li>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf <li>redirect to an external <var>URL</var> to handle the
6b15044d54a096e6323ff1540f1a491e8de7622dsf problem/error</li>
6b15044d54a096e6323ff1540f1a491e8de7622dsf </ol>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf <p>The first option is the default, while options 2-4 are
6b15044d54a096e6323ff1540f1a491e8de7622dsf configured using the <directive>ErrorDocument</directive>
6b15044d54a096e6323ff1540f1a491e8de7622dsf directive, which is followed by the HTTP response code and a URL
6b15044d54a096e6323ff1540f1a491e8de7622dsf or a message. Apache will sometimes offer additional information
6b15044d54a096e6323ff1540f1a491e8de7622dsf regarding the problem/error.</p>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf <p>URLs can begin with a slash (/) for local URLs, or be a full
6b15044d54a096e6323ff1540f1a491e8de7622dsf URL which the client can resolve. Alternatively, a message can
6b15044d54a096e6323ff1540f1a491e8de7622dsf be provided to be displayed by the browser. Examples:</p>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf <example>
6b15044d54a096e6323ff1540f1a491e8de7622dsf ErrorDocument 500 http://foo.example.com/cgi-bin/tester<br />
6b15044d54a096e6323ff1540f1a491e8de7622dsf ErrorDocument 404 /cgi-bin/bad_urls.pl<br />
6b15044d54a096e6323ff1540f1a491e8de7622dsf ErrorDocument 401 /subscription_info.html<br />
6b15044d54a096e6323ff1540f1a491e8de7622dsf ErrorDocument 403 "Sorry can't allow you access today"
6b15044d54a096e6323ff1540f1a491e8de7622dsf </example>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf <p>Additionally, the special value <code>default</code> can be used
6b15044d54a096e6323ff1540f1a491e8de7622dsf to specify Apache's simple hardcoded message. While not required
6b15044d54a096e6323ff1540f1a491e8de7622dsf under normal circumstances, <code>default</code> will restore
6b15044d54a096e6323ff1540f1a491e8de7622dsf Apache's simple hardcoded message for configurations that would
6b15044d54a096e6323ff1540f1a491e8de7622dsf otherwise inherit an existing <directive>ErrorDocument</directive>.</p>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf <example>
6b15044d54a096e6323ff1540f1a491e8de7622dsf ErrorDocument 404 /cgi-bin/bad_urls.pl<br /><br />
6b15044d54a096e6323ff1540f1a491e8de7622dsf &lt;Directory /web/docs&gt;<br />
6b15044d54a096e6323ff1540f1a491e8de7622dsf <indent>
6b15044d54a096e6323ff1540f1a491e8de7622dsf ErrorDocument 404 default<br />
6b15044d54a096e6323ff1540f1a491e8de7622dsf </indent>
6b15044d54a096e6323ff1540f1a491e8de7622dsf &lt;/Directory&gt;
6b15044d54a096e6323ff1540f1a491e8de7622dsf </example>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf <p>Note that when you specify an <directive>ErrorDocument</directive>
6b15044d54a096e6323ff1540f1a491e8de7622dsf that points to a remote URL (ie. anything with a method such as
6b15044d54a096e6323ff1540f1a491e8de7622dsf <code>http</code> in front of it), Apache will send a redirect to the
6b15044d54a096e6323ff1540f1a491e8de7622dsf client to tell it where to find the document, even if the
6b15044d54a096e6323ff1540f1a491e8de7622dsf document ends up being on the same server. This has several
6b15044d54a096e6323ff1540f1a491e8de7622dsf implications, the most important being that the client will not
6b15044d54a096e6323ff1540f1a491e8de7622dsf receive the original error status code, but instead will
6b15044d54a096e6323ff1540f1a491e8de7622dsf receive a redirect status code. This in turn can confuse web
6b15044d54a096e6323ff1540f1a491e8de7622dsf robots and other clients which try to determine if a URL is
6b15044d54a096e6323ff1540f1a491e8de7622dsf valid using the status code. In addition, if you use a remote
6b15044d54a096e6323ff1540f1a491e8de7622dsf URL in an <code>ErrorDocument 401</code>, the client will not
6b15044d54a096e6323ff1540f1a491e8de7622dsf know to prompt the user for a password since it will not
6b15044d54a096e6323ff1540f1a491e8de7622dsf receive the 401 status code. Therefore, <strong>if you use an
6b15044d54a096e6323ff1540f1a491e8de7622dsf <code>ErrorDocument 401</code> directive then it must refer to a local
6b15044d54a096e6323ff1540f1a491e8de7622dsf document.</strong></p>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf <p>Microsoft Internet Explorer (MSIE) will by default ignore
6b15044d54a096e6323ff1540f1a491e8de7622dsf server-generated error messages when they are "too small" and substitute
6b15044d54a096e6323ff1540f1a491e8de7622dsf its own "friendly" error messages. The size threshold varies depending on
6b15044d54a096e6323ff1540f1a491e8de7622dsf the type of error, but in general, if you make your error document
6b15044d54a096e6323ff1540f1a491e8de7622dsf greater than 512 bytes, then MSIE will show the server-generated
6b15044d54a096e6323ff1540f1a491e8de7622dsf error rather than masking it. More information is available in
6b15044d54a096e6323ff1540f1a491e8de7622dsf Microsoft Knowledge Base article <a
6b15044d54a096e6323ff1540f1a491e8de7622dsf href="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q294807"
6b15044d54a096e6323ff1540f1a491e8de7622dsf >Q294807</a>.</p>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf <p>Prior to version 2.0, messages were indicated by prefixing
6b15044d54a096e6323ff1540f1a491e8de7622dsf them with a single unmatched double quote character.</p>
6b15044d54a096e6323ff1540f1a491e8de7622dsf</usage>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf<seealso><a href="/custom-error.html">documentation of
6b15044d54a096e6323ff1540f1a491e8de7622dsf customizable responses</a></seealso>
6b15044d54a096e6323ff1540f1a491e8de7622dsf</directivesynopsis>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf<directivesynopsis>
6b15044d54a096e6323ff1540f1a491e8de7622dsf<name>ErrorLog</name>
6b15044d54a096e6323ff1540f1a491e8de7622dsf<description>Location where the server will log errors</description>
6b15044d54a096e6323ff1540f1a491e8de7622dsf<syntax> ErrorLog <var>file-path</var>|syslog[:<var>facility</var>]</syntax>
6b15044d54a096e6323ff1540f1a491e8de7622dsf<default>ErrorLog logs/error_log (Unix) ErrorLog logs/error.log (Windows and OS/2)</default>
6b15044d54a096e6323ff1540f1a491e8de7622dsf<contextlist><context>server config</context><context>virtual host</context>
af18698b10b429b270551ca3a5d51a75e1c9db22brianp</contextlist>
af18698b10b429b270551ca3a5d51a75e1c9db22brianp
003f0c9fda6664daf5092a0e42f65ede20098153slive<usage>
fb77c505254b6e9c925e23e734463e87574f8f40kess <p>The <directive>ErrorLog</directive> directive sets the name of
fb77c505254b6e9c925e23e734463e87574f8f40kess the file to which the server will log any errors it encounters. If
af18698b10b429b270551ca3a5d51a75e1c9db22brianp the <var>file-path</var> is not absolute then it is assumed to be
af18698b10b429b270551ca3a5d51a75e1c9db22brianp relative to the <directive module="core">ServerRoot</directive>.</p>
af18698b10b429b270551ca3a5d51a75e1c9db22brianp
003f0c9fda6664daf5092a0e42f65ede20098153slive <example><title>Example</title>
af18698b10b429b270551ca3a5d51a75e1c9db22brianp ErrorLog /var/log/httpd/error_log
af18698b10b429b270551ca3a5d51a75e1c9db22brianp </example>
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd
003f0c9fda6664daf5092a0e42f65ede20098153slive <p>If the <var>file-path</var>
003f0c9fda6664daf5092a0e42f65ede20098153slive begins with a pipe (|) then it is assumed to be a command to spawn
fb77c505254b6e9c925e23e734463e87574f8f40kess to handle the error log.</p>
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <example><title>Example</title>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd ErrorLog "|/usr/local/bin/httpd_errors"
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd </example>
af18698b10b429b270551ca3a5d51a75e1c9db22brianp
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <p>Using <code>syslog</code> instead of a filename enables logging
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd via syslogd(8) if the system supports it. The default is to use
af18698b10b429b270551ca3a5d51a75e1c9db22brianp syslog facility <code>local7</code>, but you can override this by
af18698b10b429b270551ca3a5d51a75e1c9db22brianp using the <code>syslog:<var>facility</var></code> syntax where
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd <var>facility</var> can be one of the names usually documented in
13cbe1d8f52c8097cb581e7eb259693b64d41d10poirier syslog(1).</p>
13cbe1d8f52c8097cb581e7eb259693b64d41d10poirier
13cbe1d8f52c8097cb581e7eb259693b64d41d10poirier <example><title>Example</title>
13cbe1d8f52c8097cb581e7eb259693b64d41d10poirier ErrorLog syslog:user
af18698b10b429b270551ca3a5d51a75e1c9db22brianp </example>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <p>SECURITY: See the <a
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd href="/misc/security_tips.html#serverroot">security tips</a>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd document for details on why your security could be compromised
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd if the directory where log files are stored is writable by
fb77c505254b6e9c925e23e734463e87574f8f40kess anyone other than the user that starts the server.</p>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <note type="warning"><title>Note</title>
41ef8b3051855b802104193ee0a587515af60a37wrowe <p>When entering a file path on non-Unix platforms, care should be taken
41ef8b3051855b802104193ee0a587515af60a37wrowe to make sure that only forward slashed are used even though the platform
41ef8b3051855b802104193ee0a587515af60a37wrowe may allow the use of back slashes. In general it is a good idea to always
41ef8b3051855b802104193ee0a587515af60a37wrowe use forward slashes throughout the configuration files.</p>
41ef8b3051855b802104193ee0a587515af60a37wrowe </note>
41ef8b3051855b802104193ee0a587515af60a37wrowe</usage>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess<seealso><directive module="core">LogLevel</directive></seealso>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess<seealso><a href="/logs.html">Apache Log Files</a></seealso>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess</directivesynopsis>
41ef8b3051855b802104193ee0a587515af60a37wrowe
41ef8b3051855b802104193ee0a587515af60a37wrowe<directivesynopsis>
41ef8b3051855b802104193ee0a587515af60a37wrowe<name>FileETag</name>
41ef8b3051855b802104193ee0a587515af60a37wrowe<description>File attributes used to create the ETag
41ef8b3051855b802104193ee0a587515af60a37wroweHTTP response header</description>
41ef8b3051855b802104193ee0a587515af60a37wrowe<syntax>FileETag <var>component</var> ...</syntax>
41ef8b3051855b802104193ee0a587515af60a37wrowe<default>FileETag INode MTime Size</default>
41ef8b3051855b802104193ee0a587515af60a37wrowe<contextlist><context>server config</context><context>virtual host</context>
fb77c505254b6e9c925e23e734463e87574f8f40kess<context>directory</context><context>.htaccess</context>
9c233808c898095865fcc0a2dc1cf594d0d8faf3sf</contextlist>
41ef8b3051855b802104193ee0a587515af60a37wrowe<override>FileInfo</override>
41ef8b3051855b802104193ee0a587515af60a37wrowe
41ef8b3051855b802104193ee0a587515af60a37wrowe<usage>
41ef8b3051855b802104193ee0a587515af60a37wrowe <p>
9c233808c898095865fcc0a2dc1cf594d0d8faf3sf The <directive>FileETag</directive> directive configures the file
9c233808c898095865fcc0a2dc1cf594d0d8faf3sf attributes that are used to create the <code>ETag</code> (entity
41ef8b3051855b802104193ee0a587515af60a37wrowe tag) response header field when the document is based on a file.
41ef8b3051855b802104193ee0a587515af60a37wrowe (The <code>ETag</code> value is used in cache management to save
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd network bandwidth.) In Apache 1.3.22 and earlier, the
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd <code>ETag</code> value was <em>always</em> formed
41ef8b3051855b802104193ee0a587515af60a37wrowe from the file's inode, size, and last-modified time (mtime). The
41ef8b3051855b802104193ee0a587515af60a37wrowe <directive>FileETag</directive> directive allows you to choose
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen which of these -- if any -- should be used. The recognized keywords are:
41ef8b3051855b802104193ee0a587515af60a37wrowe </p>
41ef8b3051855b802104193ee0a587515af60a37wrowe
9b5e2c5e769dc678a1aca06df75c32022b2f1492trawick <dl>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess <dt><strong>INode</strong></dt>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <dd>The file's i-node number will be included in the calculation</dd>
41ef8b3051855b802104193ee0a587515af60a37wrowe <dt><strong>MTime</strong></dt>
41ef8b3051855b802104193ee0a587515af60a37wrowe <dd>The date and time the file was last modified will be included</dd>
41ef8b3051855b802104193ee0a587515af60a37wrowe <dt><strong>Size</strong></dt>
41ef8b3051855b802104193ee0a587515af60a37wrowe <dd>The number of bytes in the file will be included</dd>
41ef8b3051855b802104193ee0a587515af60a37wrowe <dt><strong>All</strong></dt>
9fb925624300c864fe3969a264e52aa83f3c2dd0slive <dd>All available fields will be used. This is equivalent to:
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <example>FileETag INode MTime Size</example></dd>
78f4d313fd5edf76dc5cfb8725e082a08cd29740jwoolley <dt><strong>None</strong></dt>
78f4d313fd5edf76dc5cfb8725e082a08cd29740jwoolley <dd>If a document is file-based, no <code>ETag</code> field will be
2025fe01de41805f6148851335693aa5ebe2faffnd included in the response</dd>
2025fe01de41805f6148851335693aa5ebe2faffnd </dl>
9fb925624300c864fe3969a264e52aa83f3c2dd0slive
9c233808c898095865fcc0a2dc1cf594d0d8faf3sf <p>The <code>INode</code>, <code>MTime</code>, and <code>Size</code>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess keywords may be prefixed with either <code>+</code> or <code>-</code>,
9fb925624300c864fe3969a264e52aa83f3c2dd0slive which allow changes to be made to the default setting inherited
41ef8b3051855b802104193ee0a587515af60a37wrowe from a broader scope. Any keyword appearing without such a prefix
41ef8b3051855b802104193ee0a587515af60a37wrowe immediately and completely cancels the inherited setting.</p>
9c233808c898095865fcc0a2dc1cf594d0d8faf3sf
9c233808c898095865fcc0a2dc1cf594d0d8faf3sf <p>If a directory's configuration includes
41ef8b3051855b802104193ee0a587515af60a37wrowe <code>FileETag&nbsp;INode&nbsp;MTime&nbsp;Size</code>, and a
41ef8b3051855b802104193ee0a587515af60a37wrowe subdirectory's includes <code>FileETag&nbsp;-INode</code>,
9c233808c898095865fcc0a2dc1cf594d0d8faf3sf the setting for that subdirectory (which will be inherited by
41ef8b3051855b802104193ee0a587515af60a37wrowe any sub-subdirectories that don't override it) will be equivalent to
41ef8b3051855b802104193ee0a587515af60a37wrowe <code>FileETag&nbsp;MTime&nbsp;Size</code>.</p>
9c233808c898095865fcc0a2dc1cf594d0d8faf3sf</usage>
9fb925624300c864fe3969a264e52aa83f3c2dd0slive</directivesynopsis>
41ef8b3051855b802104193ee0a587515af60a37wrowe
41ef8b3051855b802104193ee0a587515af60a37wrowe<directivesynopsis type="section">
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess<name>Files</name>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess<description>Contains directives that apply to matched
313bb560bc5c323cfd40c9cad7335b4b8e060aedkessfilenames</description>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess<syntax>&lt;Files <var>filename</var>&gt; ... &lt;/Files&gt;</syntax>
41ef8b3051855b802104193ee0a587515af60a37wrowe<contextlist><context>server config</context><context>virtual host</context>
41ef8b3051855b802104193ee0a587515af60a37wrowe<context>directory</context><context>.htaccess</context>
832853bb93c1831daf24e4727c5ca0e1b1786e83lars</contextlist>
832853bb93c1831daf24e4727c5ca0e1b1786e83lars<override>All</override>
78f97ce162b66a0dbfd7af4dcd9984f162569b04minfrin
832853bb93c1831daf24e4727c5ca0e1b1786e83lars<usage>
832853bb93c1831daf24e4727c5ca0e1b1786e83lars <p>The <directive type="section">Files</directive> directive
832853bb93c1831daf24e4727c5ca0e1b1786e83lars limits the scope of the enclosed directives by filename. It is comparable
af18698b10b429b270551ca3a5d51a75e1c9db22brianp to the <directive module="core" type="section">Directory</directive>
af18698b10b429b270551ca3a5d51a75e1c9db22brianp and <directive module="core" type="section">Location</directive>
af18698b10b429b270551ca3a5d51a75e1c9db22brianp directives. It should be matched with a <code>&lt;/Files&gt;</code>
79c754eb51681c3389cd966753e902c429f78939trawick directive. The directives given within this section will be applied to
79c754eb51681c3389cd966753e902c429f78939trawick any object with a basename (last component of filename) matching the
79c754eb51681c3389cd966753e902c429f78939trawick specified filename. <directive type="section">Files</directive>
79c754eb51681c3389cd966753e902c429f78939trawick sections are processed in the order they appear in the
79c754eb51681c3389cd966753e902c429f78939trawick configuration file, after the <directive module="core"
79c754eb51681c3389cd966753e902c429f78939trawick type="section">Directory</directive> sections and
79c754eb51681c3389cd966753e902c429f78939trawick <code>.htaccess</code> files are read, but before <directive
79c754eb51681c3389cd966753e902c429f78939trawick type="section" module="core">Location</directive> sections. Note
79c754eb51681c3389cd966753e902c429f78939trawick that <directive type="section">Files</directive> can be nested
79c754eb51681c3389cd966753e902c429f78939trawick inside <directive type="section"
79c754eb51681c3389cd966753e902c429f78939trawick module="core">Directory</directive> sections to restrict the
79c754eb51681c3389cd966753e902c429f78939trawick portion of the filesystem they apply to.</p>
79c754eb51681c3389cd966753e902c429f78939trawick
79c754eb51681c3389cd966753e902c429f78939trawick <p>The <var>filename</var> argument should include a filename, or
79c754eb51681c3389cd966753e902c429f78939trawick a wild-card string, where <code>?</code> matches any single character,
79c754eb51681c3389cd966753e902c429f78939trawick and <code>*</code> matches any sequences of characters. Extended regular
79c754eb51681c3389cd966753e902c429f78939trawick expressions can also be used, with the addition of the
79c754eb51681c3389cd966753e902c429f78939trawick <code>~</code> character. For example:</p>
79c754eb51681c3389cd966753e902c429f78939trawick
79c754eb51681c3389cd966753e902c429f78939trawick <example>
79c754eb51681c3389cd966753e902c429f78939trawick &lt;Files ~ "\.(gif|jpe?g|png)$"&gt;
79c754eb51681c3389cd966753e902c429f78939trawick </example>
79c754eb51681c3389cd966753e902c429f78939trawick
79c754eb51681c3389cd966753e902c429f78939trawick <p>would match most common Internet graphics formats. <directive
79c754eb51681c3389cd966753e902c429f78939trawick module="core" type="section">FilesMatch</directive> is preferred,
79c754eb51681c3389cd966753e902c429f78939trawick however.</p>
79c754eb51681c3389cd966753e902c429f78939trawick
79c754eb51681c3389cd966753e902c429f78939trawick <p>Note that unlike <directive type="section"
79c754eb51681c3389cd966753e902c429f78939trawick module="core">Directory</directive> and <directive type="section"
79c754eb51681c3389cd966753e902c429f78939trawick module="core">Location</directive> sections, <directive
79c754eb51681c3389cd966753e902c429f78939trawick type="section">Files</directive> sections can be used inside
79c754eb51681c3389cd966753e902c429f78939trawick <code>.htaccess</code> files. This allows users to control access to
79c754eb51681c3389cd966753e902c429f78939trawick their own files, at a file-by-file level.</p>
79c754eb51681c3389cd966753e902c429f78939trawick
79c754eb51681c3389cd966753e902c429f78939trawick</usage>
79c754eb51681c3389cd966753e902c429f78939trawick<seealso><a href="/sections.html">How &lt;Directory&gt;, &lt;Location&gt;
79c754eb51681c3389cd966753e902c429f78939trawick and &lt;Files&gt; sections work</a> for an explanation of how these
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive different sections are combined when a request is received</seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
003f0c9fda6664daf5092a0e42f65ede20098153slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis type="section">
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<name>FilesMatch</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Contains directives that apply to regular-expression matched
80c4526970a11f37c0f8e3b82afdf03902dac3f3slivefilenames</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>&lt;FilesMatch <var>regex</var>&gt; ... &lt;/FilesMatch&gt;</syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context><context>virtual host</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<context>directory</context><context>.htaccess</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</contextlist>
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen<override>All</override>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The <directive type="section">FilesMatch</directive> directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive limits the scope of the enclosed directives by filename, just as the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <directive module="core" type="section">Files</directive> directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive does. However, it accepts a regular expression. For example:</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;FilesMatch "\.(gif|jpe?g|png)$"&gt;
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>would match most common Internet graphics formats.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><a href="/sections.html">How &lt;Directory&gt;, &lt;Location&gt;
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive and &lt;Files&gt; sections work</a> for an explanation of how these
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive different sections are combined when a request is received</seealso>
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
69fba5b8aa0b0dc408f649cfdaab064ce120b05bslive<name>ForceType</name>
69fba5b8aa0b0dc408f649cfdaab064ce120b05bslive<description>Forces all matching files to be served with the specified
69fba5b8aa0b0dc408f649cfdaab064ce120b05bsliveMIME content-type</description>
69fba5b8aa0b0dc408f649cfdaab064ce120b05bslive<syntax>ForceType <var>MIME-type</var>|None</syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>directory</context><context>.htaccess</context>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd</contextlist>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<override>FileInfo</override>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<compatibility>Moved to the core in Apache 2.0</compatibility>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<usage>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <p>When placed into an <code>.htaccess</code> file or a
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <directive type="section" module="core">Directory</directive>, or
f7fe99050600166042c04b8e595fb75499eed7f0geoff <directive type="section" module="core">Location</directive> or
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen <directive type="section" module="core">Files</directive>
f7fe99050600166042c04b8e595fb75499eed7f0geoff section, this directive forces all matching files to be served
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen with the content type identification given by
f7fe99050600166042c04b8e595fb75499eed7f0geoff <var>MIME-type</var>. For example, if you had a directory full of
f7fe99050600166042c04b8e595fb75499eed7f0geoff GIF files, but did not want to label them all with <code>.gif</code>,
f7fe99050600166042c04b8e595fb75499eed7f0geoff you might want to use:</p>
f7fe99050600166042c04b8e595fb75499eed7f0geoff
f7fe99050600166042c04b8e595fb75499eed7f0geoff <example>
f7fe99050600166042c04b8e595fb75499eed7f0geoff ForceType image/gif
f7fe99050600166042c04b8e595fb75499eed7f0geoff </example>
f7fe99050600166042c04b8e595fb75499eed7f0geoff
f7fe99050600166042c04b8e595fb75499eed7f0geoff <p>Note that unlike <directive module="core">DefaultType</directive>,
f7fe99050600166042c04b8e595fb75499eed7f0geoff this directive overrides all mime-type associations, including
f7fe99050600166042c04b8e595fb75499eed7f0geoff filename extensions, that might identify the media type.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>You can override any <directive>ForceType</directive> setting
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen by using the value of <code>None</code>:</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive # force all files to be image/gif:<br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;Location /images&gt;<br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <indent>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive ForceType image/gif<br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </indent>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;/Location&gt;<br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive # but normal mime-type associations here:<br />
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess &lt;Location /images/mixed&gt;<br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <indent>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive ForceType None<br />
fb77c505254b6e9c925e23e734463e87574f8f40kess </indent>
fb77c505254b6e9c925e23e734463e87574f8f40kess &lt;/Location&gt;
fb77c505254b6e9c925e23e734463e87574f8f40kess </example>
4f854c24127e28f7ad72ce9a39d4448aaf910fc1slive</usage>
4f854c24127e28f7ad72ce9a39d4448aaf910fc1slive</directivesynopsis>
4f854c24127e28f7ad72ce9a39d4448aaf910fc1slive
9b5e2c5e769dc678a1aca06df75c32022b2f1492trawick<directivesynopsis>
fb77c505254b6e9c925e23e734463e87574f8f40kess<name>HostnameLookups</name>
fb77c505254b6e9c925e23e734463e87574f8f40kess<description>Enables DNS lookups on client IP addresses</description>
4f854c24127e28f7ad72ce9a39d4448aaf910fc1slive<syntax>HostnameLookups On|Off|Double</syntax>
69fba5b8aa0b0dc408f649cfdaab064ce120b05bslive<default>HostnameLookups Off</default>
69fba5b8aa0b0dc408f649cfdaab064ce120b05bslive<contextlist><context>server config</context><context>virtual host</context>
69fba5b8aa0b0dc408f649cfdaab064ce120b05bslive<context>directory</context></contextlist>
69fba5b8aa0b0dc408f649cfdaab064ce120b05bslive
69fba5b8aa0b0dc408f649cfdaab064ce120b05bslive<usage>
69fba5b8aa0b0dc408f649cfdaab064ce120b05bslive <p>This directive enables DNS lookups so that host names can be
69fba5b8aa0b0dc408f649cfdaab064ce120b05bslive logged (and passed to CGIs/SSIs in <code>REMOTE_HOST</code>).
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor The value <code>Double</code> refers to doing double-reverse
b5d3d68a9f683722eac7a3ca507c3e571908dfc0rbowen DNS lookup. That is, after a reverse lookup is performed, a forward
b5d3d68a9f683722eac7a3ca507c3e571908dfc0rbowen lookup is then performed on that result. At least one of the IP
b5d3d68a9f683722eac7a3ca507c3e571908dfc0rbowen addresses in the forward lookup must match the original
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen address. (In "tcpwrappers" terminology this is called
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>PARANOID</code>.)</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>Regardless of the setting, when <module>mod_authz_host</module> is
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive used for controlling access by hostname, a double reverse lookup
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive will be performed. This is necessary for security. Note that the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive result of this double-reverse isn't generally available unless you
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive set <code>HostnameLookups Double</code>. For example, if only
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>HostnameLookups On</code> and a request is made to an object
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess that is protected by hostname restrictions, regardless of whether
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd the double-reverse fails or not, CGIs will still be passed the
4a13940dc2990df0a798718d3a3f9cf1566c2217bjh single-reverse result in <code>REMOTE_HOST</code>.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The default is <code>Off</code> in order to save the network
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive traffic for those sites that don't truly need the reverse
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive lookups done. It is also better for the end users because they
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive don't have to suffer the extra latency that a lookup entails.
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive Heavily loaded sites should leave this directive
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor <code>Off</code>, since DNS lookups can take considerable
c68acc9d712af079afa2bd1a5a4aeef9a3ea573ckess amounts of time. The utility <program>logresolve</program>, compiled by
fb109b84906e3ee61680aa289953c2f9e859354erbowen default to the <code>bin</code> subdirectory of your installation
fb109b84906e3ee61680aa289953c2f9e859354erbowen directory, can be used to look up host names from logged IP addresses
fb109b84906e3ee61680aa289953c2f9e859354erbowen offline.</p>
fb109b84906e3ee61680aa289953c2f9e859354erbowen</usage>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess</directivesynopsis>
fb109b84906e3ee61680aa289953c2f9e859354erbowen
960188481b7025ac8ef7221b67af83dd27e46cd0rjung<directivesynopsis type="section">
960188481b7025ac8ef7221b67af83dd27e46cd0rjung<name>IfDefine</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Encloses directives that will be processed only
fb109b84906e3ee61680aa289953c2f9e859354erbowenif a test is true at startup</description>
fb109b84906e3ee61680aa289953c2f9e859354erbowen<syntax>&lt;IfDefine [!]<var>parameter-name</var>&gt; ...
fb109b84906e3ee61680aa289953c2f9e859354erbowen &lt;/IfDefine&gt;</syntax>
fb109b84906e3ee61680aa289953c2f9e859354erbowen<contextlist><context>server config</context><context>virtual host</context>
960188481b7025ac8ef7221b67af83dd27e46cd0rjung<context>directory</context><context>.htaccess</context>
960188481b7025ac8ef7221b67af83dd27e46cd0rjung</contextlist>
960188481b7025ac8ef7221b67af83dd27e46cd0rjung<override>All</override>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The <code>&lt;IfDefine <var>test</var>&gt;...&lt;/IfDefine&gt;
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd </code> section is used to mark directives that are conditional. The
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd directives within an <directive type="section">IfDefine</directive>
5155e92c6100b47513159eee1b2b9914ab204a5acovener section are only processed if the <var>test</var> is true. If <var>
5155e92c6100b47513159eee1b2b9914ab204a5acovener test</var> is false, everything between the start and end markers is
5155e92c6100b47513159eee1b2b9914ab204a5acovener ignored.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
fb109b84906e3ee61680aa289953c2f9e859354erbowen <p>The <var>test</var> in the <directive type="section"
fb109b84906e3ee61680aa289953c2f9e859354erbowen >IfDefine</directive> section directive can be one of two forms:</p>
fb109b84906e3ee61680aa289953c2f9e859354erbowen
fb109b84906e3ee61680aa289953c2f9e859354erbowen <ul>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <li><var>parameter-name</var></li>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <li><code>!</code><var>parameter-name</var></li>
9b5e2c5e769dc678a1aca06df75c32022b2f1492trawick </ul>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
2bac697634d965d9d9a921a99a68b2c454c8a95dbnicholes <p>In the former case, the directives between the start and end
2bac697634d965d9d9a921a99a68b2c454c8a95dbnicholes markers are only processed if the parameter named
d950cf9262224a223e2ff5c51393708071e14b94covener <var>parameter-name</var> is defined. The second format reverses
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor the test, and only processes the directives if
2bac697634d965d9d9a921a99a68b2c454c8a95dbnicholes <var>parameter-name</var> is <strong>not</strong> defined.</p>
2bac697634d965d9d9a921a99a68b2c454c8a95dbnicholes
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The <var>parameter-name</var> argument is a define as given on
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the <program>httpd</program> command line via <code>-D<var>parameter-</var>
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen </code>, at the time the server was started.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p><directive type="section">IfDefine</directive> sections are
e302f38fd646764ce1a1e1c578d794aef514a9e5sf nest-able, which can be used to implement simple
e302f38fd646764ce1a1e1c578d794aef514a9e5sf multiple-parameter tests. Example:</p>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
2851546ce44280e54301016a7e92b00a87745509sf <example>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf httpd -DReverseProxy ...<br />
e302f38fd646764ce1a1e1c578d794aef514a9e5sf <br />
e302f38fd646764ce1a1e1c578d794aef514a9e5sf # httpd.conf<br />
e302f38fd646764ce1a1e1c578d794aef514a9e5sf &lt;IfDefine ReverseProxy&gt;<br />
e302f38fd646764ce1a1e1c578d794aef514a9e5sf <indent>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf LoadModule rewrite_module modules/mod_rewrite.so<br />
e302f38fd646764ce1a1e1c578d794aef514a9e5sf LoadModule proxy_module modules/libproxy.so<br />
e302f38fd646764ce1a1e1c578d794aef514a9e5sf </indent>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf &lt;/IfDefine&gt;
e302f38fd646764ce1a1e1c578d794aef514a9e5sf </example>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf</usage>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf</directivesynopsis>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<directivesynopsis type="section">
18ee8bb3db5cc3b04291f89301bd5d14dc271066lgentis<name>IfModule</name>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<description>Encloses directives that are processed conditional on the
b89fea36d9c12cec3344576824f4e6798da90ad4rbowenpresence or absence of a specific module</description>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<syntax>&lt;IfModule [!]<var>module-file</var>|<var>module-identifier</var>&gt; ...
e302f38fd646764ce1a1e1c578d794aef514a9e5sf &lt;/IfModule&gt;</syntax>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<contextlist><context>server config</context><context>virtual host</context>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<context>directory</context><context>.htaccess</context>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf</contextlist>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<override>All</override>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<compatibility>Module identifiers are available in version 2.1 and
e302f38fd646764ce1a1e1c578d794aef514a9e5sflater.</compatibility>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<usage>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf <p>The <code>&lt;IfModule <var>test</var>&gt;...&lt;/IfModule&gt;</code>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf section is used to mark directives that are conditional on the presence of
e302f38fd646764ce1a1e1c578d794aef514a9e5sf a specific module. The directives within an <directive type="section"
e302f38fd646764ce1a1e1c578d794aef514a9e5sf >IfModule</directive> section are only processed if the <var>test</var>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf is true. If <var>test</var> is false, everything between the start and
e302f38fd646764ce1a1e1c578d794aef514a9e5sf end markers is ignored.</p>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
e302f38fd646764ce1a1e1c578d794aef514a9e5sf <p>The <var>test</var> in the <directive type="section"
e302f38fd646764ce1a1e1c578d794aef514a9e5sf >IfModule</directive> section directive can be one of two forms:</p>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen
b5c4b00201fdc3ed11c6cc05cf3f9a7912ac0cfbsf <ul>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf <li><var>module</var></li>
b5c4b00201fdc3ed11c6cc05cf3f9a7912ac0cfbsf
b5c4b00201fdc3ed11c6cc05cf3f9a7912ac0cfbsf <li>!<var>module</var></li>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf </ul>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
b5c4b00201fdc3ed11c6cc05cf3f9a7912ac0cfbsf <p>In the former case, the directives between the start and end
b5c4b00201fdc3ed11c6cc05cf3f9a7912ac0cfbsf markers are only processed if the module named <var>module</var>
b5c4b00201fdc3ed11c6cc05cf3f9a7912ac0cfbsf is included in Apache -- either compiled in or
b5c4b00201fdc3ed11c6cc05cf3f9a7912ac0cfbsf dynamically loaded using <directive module="mod_so"
b5c4b00201fdc3ed11c6cc05cf3f9a7912ac0cfbsf >LoadModule</directive>. The second format reverses the test,
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen and only processes the directives if <var>module</var> is
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen <strong>not</strong> included.</p>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen <p>The <var>module</var> argument can be either the module identifier or
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen the file name of the module, at the time it was compiled. For example,
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen <code>rewrite_module</code> is the identifier and
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen <code>mod_rewrite.c</code> is the file name. If a module consists of
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen several source files, use the name of the file containing the string
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen <code>STANDARD20_MODULE_STUFF</code>.</p>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen <p><directive type="section">IfModule</directive> sections are
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen nest-able, which can be used to implement simple multiple-module
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen tests.</p>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen <note>This section should only be used if you need to have one
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen configuration file that works whether or not a specific module
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen is available. In normal operation, directives need not be
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen placed in <directive type="section">IfModule</directive>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen sections.</note>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen</usage>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen</directivesynopsis>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen<directivesynopsis>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<name>Include</name>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<description>Includes other configuration files from within
e302f38fd646764ce1a1e1c578d794aef514a9e5sfthe server configuration files</description>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<syntax>Include <var>file-path</var>|<var>directory-path</var></syntax>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<contextlist><context>server config</context><context>virtual host</context>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<context>directory</context>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf</contextlist>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<compatibility>Wildcard matching available in 2.0.41 and later</compatibility>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<usage>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen <p>This directive allows inclusion of other configuration files
e302f38fd646764ce1a1e1c578d794aef514a9e5sf from within the server configuration files.</p>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen <p>Shell-style (<code>fnmatch()</code>) wildcard characters can be used to
e302f38fd646764ce1a1e1c578d794aef514a9e5sf include several files at once, in alphabetical order. In
e302f38fd646764ce1a1e1c578d794aef514a9e5sf addition, if <directive>Include</directive> points to a directory,
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen rather than a file, Apache will read all files in that directory
0b5f11662dee7135ff8dd04311a4ee6df7fe2b1crbowen and any subdirectory. But including entire directories is not
4497075b5e08b0c8ee89425a1758258ae80550fcsf recommended, because it is easy to accidentally leave temporary
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen files in a directory that can cause <program>httpd</program> to
e302f38fd646764ce1a1e1c578d794aef514a9e5sf fail.</p>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen <p>The file path specified may be an absolute path, or may be relative
e302f38fd646764ce1a1e1c578d794aef514a9e5sf to the <directive module="core">ServerRoot</directive> directory.</p>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen <p>Examples:</p>
0b5f11662dee7135ff8dd04311a4ee6df7fe2b1crbowen
e302f38fd646764ce1a1e1c578d794aef514a9e5sf <example>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen Include /usr/local/apache2/conf/ssl.conf<br />
e302f38fd646764ce1a1e1c578d794aef514a9e5sf Include /usr/local/apache2/conf/vhosts/*.conf
e302f38fd646764ce1a1e1c578d794aef514a9e5sf </example>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen
e302f38fd646764ce1a1e1c578d794aef514a9e5sf <p>Or, providing paths relative to your <directive
e302f38fd646764ce1a1e1c578d794aef514a9e5sf module="core">ServerRoot</directive> directory:</p>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen
e302f38fd646764ce1a1e1c578d794aef514a9e5sf <example>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf Include conf/ssl.conf<br />
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen Include conf/vhosts/*.conf
e302f38fd646764ce1a1e1c578d794aef514a9e5sf </example>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen <p>Running <code>apachectl configtest</code> will give you a list
e302f38fd646764ce1a1e1c578d794aef514a9e5sf of the files that are being processed during the configuration
e302f38fd646764ce1a1e1c578d794aef514a9e5sf check:</p>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen
e302f38fd646764ce1a1e1c578d794aef514a9e5sf <example>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf root@host# apachectl configtest<br />
e302f38fd646764ce1a1e1c578d794aef514a9e5sf Processing config file: /usr/local/apache2/conf/ssl.conf<br />
e302f38fd646764ce1a1e1c578d794aef514a9e5sf Processing config file: /usr/local/apache2/conf/vhosts/vhost1.conf<br />
e302f38fd646764ce1a1e1c578d794aef514a9e5sf Processing config file: /usr/local/apache2/conf/vhosts/vhost2.conf<br />
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen Syntax OK
0b5f11662dee7135ff8dd04311a4ee6df7fe2b1crbowen </example>
4497075b5e08b0c8ee89425a1758258ae80550fcsf</usage>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<seealso><program>apachectl</program></seealso>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf</directivesynopsis>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<directivesynopsis>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<name>KeepAlive</name>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen<description>Enables HTTP persistent connections</description>
b08558bf6a64f9501ad3eca34eaf4d978bd928cfsf<syntax>KeepAlive On|Off</syntax>
b08558bf6a64f9501ad3eca34eaf4d978bd928cfsf<default>KeepAlive On</default>
b08558bf6a64f9501ad3eca34eaf4d978bd928cfsf<contextlist><context>server config</context><context>virtual host</context>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen</contextlist>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<usage>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen <p>The Keep-Alive extension to HTTP/1.0 and the persistent
e302f38fd646764ce1a1e1c578d794aef514a9e5sf connection feature of HTTP/1.1 provide long-lived HTTP sessions
e302f38fd646764ce1a1e1c578d794aef514a9e5sf which allow multiple requests to be sent over the same TCP
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen connection. In some cases this has been shown to result in an
e302f38fd646764ce1a1e1c578d794aef514a9e5sf almost 50% speedup in latency times for HTML documents with
e302f38fd646764ce1a1e1c578d794aef514a9e5sf many images. To enable Keep-Alive connections, set
e302f38fd646764ce1a1e1c578d794aef514a9e5sf <code>KeepAlive On</code>.</p>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen
9228509ac5da8374df4a5d50b7da139e7b31f8a3sf <p>For HTTP/1.0 clients, Keep-Alive connections will only be
9228509ac5da8374df4a5d50b7da139e7b31f8a3sf used if they are specifically requested by a client. In
9228509ac5da8374df4a5d50b7da139e7b31f8a3sf addition, a Keep-Alive connection with an HTTP/1.0 client can
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen only be used when the length of the content is known in
9228509ac5da8374df4a5d50b7da139e7b31f8a3sf advance. This implies that dynamic content such as CGI output,
9228509ac5da8374df4a5d50b7da139e7b31f8a3sf SSI pages, and server-generated directory listings will
9228509ac5da8374df4a5d50b7da139e7b31f8a3sf generally not use Keep-Alive connections to HTTP/1.0 clients.
9228509ac5da8374df4a5d50b7da139e7b31f8a3sf For HTTP/1.1 clients, persistent connections are the default
e302f38fd646764ce1a1e1c578d794aef514a9e5sf unless otherwise specified. If the client requests it, chunked
e302f38fd646764ce1a1e1c578d794aef514a9e5sf encoding will be used in order to send content of unknown
e302f38fd646764ce1a1e1c578d794aef514a9e5sf length over persistent connections.</p>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf</usage>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<seealso><directive module="core">MaxKeepAliveRequests</directive></seealso>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf</directivesynopsis>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<directivesynopsis>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<name>KeepAliveTimeout</name>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<description>Amount of time the server will wait for subsequent
e302f38fd646764ce1a1e1c578d794aef514a9e5sfrequests on a persistent connection</description>
ce4dc40a4e87991087488f70d96d3447d7557294sf<syntax>KeepAliveTimeout <var>seconds</var></syntax>
ce4dc40a4e87991087488f70d96d3447d7557294sf<default>KeepAliveTimeout 15</default>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<contextlist><context>server config</context><context>virtual host</context>
abdaaa23d72ef7e7ff91eab9c5581d40130680c1rbowen</contextlist>
abdaaa23d72ef7e7ff91eab9c5581d40130680c1rbowen
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<usage>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf <p>The number of seconds Apache will wait for a subsequent
e302f38fd646764ce1a1e1c578d794aef514a9e5sf request before closing the connection. Once a request has been
abdaaa23d72ef7e7ff91eab9c5581d40130680c1rbowen received, the timeout value specified by the
abdaaa23d72ef7e7ff91eab9c5581d40130680c1rbowen <directive module="core">Timeout</directive> directive applies.</p>
abdaaa23d72ef7e7ff91eab9c5581d40130680c1rbowen
abdaaa23d72ef7e7ff91eab9c5581d40130680c1rbowen <p>Setting <directive>KeepAliveTimeout</directive> to a high value
abdaaa23d72ef7e7ff91eab9c5581d40130680c1rbowen may cause performance problems in heavily loaded servers. The
abdaaa23d72ef7e7ff91eab9c5581d40130680c1rbowen higher the timeout, the more server processes will be kept
abdaaa23d72ef7e7ff91eab9c5581d40130680c1rbowen occupied waiting on connections with idle clients.</p>
abdaaa23d72ef7e7ff91eab9c5581d40130680c1rbowen</usage>
abdaaa23d72ef7e7ff91eab9c5581d40130680c1rbowen</directivesynopsis>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
b5c4b00201fdc3ed11c6cc05cf3f9a7912ac0cfbsf<directivesynopsis type="section">
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<name>Limit</name>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<description>Restrict enclosed access controls to only certain HTTP
e302f38fd646764ce1a1e1c578d794aef514a9e5sfmethods</description>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<syntax>&lt;Limit <var>method</var> [<var>method</var>] ... &gt; ...
b5c4b00201fdc3ed11c6cc05cf3f9a7912ac0cfbsf &lt;/Limit&gt;</syntax>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<contextlist><context>server config</context><context>virtual host</context>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<context>directory</context><context>.htaccess</context>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf</contextlist>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<override>All</override>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
e302f38fd646764ce1a1e1c578d794aef514a9e5sf<usage>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf <p>Access controls are normally effective for
e302f38fd646764ce1a1e1c578d794aef514a9e5sf <strong>all</strong> access methods, and this is the usual
e302f38fd646764ce1a1e1c578d794aef514a9e5sf desired behavior. <strong>In the general case, access control
e302f38fd646764ce1a1e1c578d794aef514a9e5sf directives should not be placed within a
e302f38fd646764ce1a1e1c578d794aef514a9e5sf <directive type="section">Limit</directive> section.</strong></p>
e302f38fd646764ce1a1e1c578d794aef514a9e5sf
a8ee031b2224ce5473826c9d4f603681589245fawrowe <p>The purpose of the <directive type="section">Limit</directive>
a8ee031b2224ce5473826c9d4f603681589245fawrowe directive is to restrict the effect of the access controls to the
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor nominated HTTP methods. For all other methods, the access
a8ee031b2224ce5473826c9d4f603681589245fawrowe restrictions that are enclosed in the <directive
a8ee031b2224ce5473826c9d4f603681589245fawrowe type="section">Limit</directive> bracket <strong>will have no
a8ee031b2224ce5473826c9d4f603681589245fawrowe effect</strong>. The following example applies the access control
a8ee031b2224ce5473826c9d4f603681589245fawrowe only to the methods <code>POST</code>, <code>PUT</code>, and
a8ee031b2224ce5473826c9d4f603681589245fawrowe <code>DELETE</code>, leaving all other methods unprotected:</p>
a8ee031b2224ce5473826c9d4f603681589245fawrowe
a8ee031b2224ce5473826c9d4f603681589245fawrowe <example>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor &lt;Limit POST PUT DELETE&gt;<br />
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor <indent>
a8ee031b2224ce5473826c9d4f603681589245fawrowe Require valid-user<br />
a8ee031b2224ce5473826c9d4f603681589245fawrowe </indent>
a8ee031b2224ce5473826c9d4f603681589245fawrowe &lt;/Limit&gt;
a8ee031b2224ce5473826c9d4f603681589245fawrowe </example>
a8ee031b2224ce5473826c9d4f603681589245fawrowe
a8ee031b2224ce5473826c9d4f603681589245fawrowe <p>The method names listed can be one or more of: <code>GET</code>,
a8ee031b2224ce5473826c9d4f603681589245fawrowe <code>POST</code>, <code>PUT</code>, <code>DELETE</code>,
a8ee031b2224ce5473826c9d4f603681589245fawrowe <code>CONNECT</code>, <code>OPTIONS</code>,
a8ee031b2224ce5473826c9d4f603681589245fawrowe <code>PATCH</code>, <code>PROPFIND</code>, <code>PROPPATCH</code>,
34b157732214cedcd129cd9fe7c4290757505d60minfrin <code>MKCOL</code>, <code>COPY</code>, <code>MOVE</code>,
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor <code>LOCK</code>, and <code>UNLOCK</code>. <strong>The method name is
a8ee031b2224ce5473826c9d4f603681589245fawrowe case-sensitive.</strong> If <code>GET</code> is used it will also
a8ee031b2224ce5473826c9d4f603681589245fawrowe restrict <code>HEAD</code> requests. The <code>TRACE</code> method
a8ee031b2224ce5473826c9d4f603681589245fawrowe cannot be limited.</p>
a8ee031b2224ce5473826c9d4f603681589245fawrowe
02c86afa991026c4146423dc84bc126e57d28df6wrowe <note type="warning">A <directive type="section"
34b157732214cedcd129cd9fe7c4290757505d60minfrin module="core">LimitExcept</directive> section should always be
34b157732214cedcd129cd9fe7c4290757505d60minfrin used in preference to a <directive type="section"
34b157732214cedcd129cd9fe7c4290757505d60minfrin module="core">Limit</directive> section when restricting access,
34b157732214cedcd129cd9fe7c4290757505d60minfrin since a <directive type="section"
a8ee031b2224ce5473826c9d4f603681589245fawrowe module="core">LimitExcept</directive> section provides protection
a8ee031b2224ce5473826c9d4f603681589245fawrowe against arbitrary methods.</note>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
003f0c9fda6664daf5092a0e42f65ede20098153slive</directivesynopsis>
a5f060e0c74a44cb8896ae794c08f94f7c9a46a7covener
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<directivesynopsis type="section">
18b4b0fd6056093002ddef488636bf5ebe415ef0erikabele<name>LimitExcept</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Restrict access controls to all HTTP methods
80c4526970a11f37c0f8e3b82afdf03902dac3f3sliveexcept the named ones</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>&lt;LimitExcept <var>method</var> [<var>method</var>] ... &gt; ...
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;/LimitExcept&gt;</syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context><context>virtual host</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<context>directory</context><context>.htaccess</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<override>All</override>
fb77c505254b6e9c925e23e734463e87574f8f40kess
a5f060e0c74a44cb8896ae794c08f94f7c9a46a7covener<usage>
fb77c505254b6e9c925e23e734463e87574f8f40kess <p><directive type="section">LimitExcept</directive> and
c976a7c7d20f2be319b128dd7d0b1568da224c0arbowen <code>&lt;/LimitExcept&gt;</code> are used to enclose
fb77c505254b6e9c925e23e734463e87574f8f40kess a group of access control directives which will then apply to any
fb77c505254b6e9c925e23e734463e87574f8f40kess HTTP access method <strong>not</strong> listed in the arguments;
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive i.e., it is the opposite of a <directive type="section"
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd module="core">Limit</directive> section and can be used to control
530eba85dbd41b8a0fa5255d3648d1440199a661slive both standard and nonstandard/unrecognized methods. See the
530eba85dbd41b8a0fa5255d3648d1440199a661slive documentation for <directive module="core"
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive type="section">Limit</directive> for more details.</p>
530eba85dbd41b8a0fa5255d3648d1440199a661slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>For example:</p>
530eba85dbd41b8a0fa5255d3648d1440199a661slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
530eba85dbd41b8a0fa5255d3648d1440199a661slive &lt;LimitExcept POST GET&gt;<br />
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <indent>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd Require valid-user<br />
530eba85dbd41b8a0fa5255d3648d1440199a661slive </indent>
fb77c505254b6e9c925e23e734463e87574f8f40kess &lt;/LimitExcept&gt;
fb77c505254b6e9c925e23e734463e87574f8f40kess </example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd</usage>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd</directivesynopsis>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<directivesynopsis>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<name>LimitInternalRecursion</name>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<description>Determine maximum number of internal redirects and nested
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cndsubrequests</description>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<syntax>LimitInternalRecursion <var>number</var> [<var>number</var>]</syntax>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<default>LimitInternalRecursion 10</default>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<contextlist><context>server config</context><context>virtual host</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<compatibility>Available in Apache 2.0.47 and later</compatibility>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
0db981f8fdfb62c5149efa079f0369b73d472d04rpluem<usage>
0db981f8fdfb62c5149efa079f0369b73d472d04rpluem <p>An internal redirect happens, for example, when using the <directive
0db981f8fdfb62c5149efa079f0369b73d472d04rpluem module="mod_actions">Action</directive> directive, which internally
0db981f8fdfb62c5149efa079f0369b73d472d04rpluem redirects the original request to a CGI script. A subrequest is Apache's
0db981f8fdfb62c5149efa079f0369b73d472d04rpluem mechanism to find out what would happen for some URI if it were requested.
0db981f8fdfb62c5149efa079f0369b73d472d04rpluem For example, <module>mod_dir</module> uses subrequests to look for the
0db981f8fdfb62c5149efa079f0369b73d472d04rpluem files listed in the <directive module="mod_dir">DirectoryIndex</directive>
0db981f8fdfb62c5149efa079f0369b73d472d04rpluem directive.</p>
a5f060e0c74a44cb8896ae794c08f94f7c9a46a7covener
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor <p><directive>LimitInternalRecursion</directive> prevents the server
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor from crashing when entering an infinite loop of internal redirects or
a5f060e0c74a44cb8896ae794c08f94f7c9a46a7covener subrequests. Such loops are usually caused by misconfigurations.</p>
a5f060e0c74a44cb8896ae794c08f94f7c9a46a7covener
a5f060e0c74a44cb8896ae794c08f94f7c9a46a7covener <p>The directive stores two different limits, which are evaluated on
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive per-request basis. The first <var>number</var> is the maximum number of
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive internal redirects, that may follow each other. The second <var>number</var>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive determines, how deep subrequests may be nested. If you specify only one
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <var>number</var>, it will be assigned to both limits.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
003f0c9fda6664daf5092a0e42f65ede20098153slive <example><title>Example</title>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive LimitInternalRecursion 5
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd </example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
003f0c9fda6664daf5092a0e42f65ede20098153slive<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>LimitRequestBody</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Restricts the total size of the HTTP request body sent
80c4526970a11f37c0f8e3b82afdf03902dac3f3slivefrom the client</description>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess<syntax>LimitRequestBody <var>bytes</var></syntax>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess<default>LimitRequestBody 0</default>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess<contextlist><context>server config</context><context>virtual host</context>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess<context>directory</context><context>.htaccess</context>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess</contextlist>
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess<override>All</override>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>This directive specifies the number of <var>bytes</var> from 0
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive (meaning unlimited) to 2147483647 (2GB) that are allowed in a
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive request body.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The <directive>LimitRequestBody</directive> directive allows
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the user to set a limit on the allowed size of an HTTP request
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive message body within the context in which the directive is given
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive (server, per-directory, per-file or per-location). If the client
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive request exceeds that limit, the server will return an error
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd response instead of servicing the request. The size of a normal
fb77c505254b6e9c925e23e734463e87574f8f40kess request message body will vary greatly depending on the nature of
030108b1816bcda3d925df65357feabdce83bc94slive the resource and the methods allowed on that resource. CGI scripts
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor typically use the message body for retrieving form information.
030108b1816bcda3d925df65357feabdce83bc94slive Implementations of the <code>PUT</code> method will require
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive a value at least as large as any representation that the server
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd wishes to accept for that resource.</p>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <p>This directive gives the server administrator greater
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd control over abnormal client request behavior, which may be
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd useful for avoiding some forms of denial-of-service
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess attacks.</p>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <p>If, for example, you are permitting file upload to a particular
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive location, and wish to limit the size of the uploaded file to 100K,
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive you might use the following directive:</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive LimitRequestBody 102400
fb77c505254b6e9c925e23e734463e87574f8f40kess </example>
fb77c505254b6e9c925e23e734463e87574f8f40kess
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess<directivesynopsis>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess<name>LimitRequestFields</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Limits the number of HTTP request header fields that
80c4526970a11f37c0f8e3b82afdf03902dac3f3slivewill be accepted from the client</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>LimitRequestFields <var>number</var></syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<default>LimitRequestFields 100</default>
003f0c9fda6664daf5092a0e42f65ede20098153slive<contextlist><context>server config</context></contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p><var>Number</var> is an integer from 0 (meaning unlimited) to
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive 32767. The default value is defined by the compile-time
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive constant <code>DEFAULT_LIMIT_REQUEST_FIELDS</code> (100 as
003f0c9fda6664daf5092a0e42f65ede20098153slive distributed).</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The <directive>LimitRequestFields</directive> directive allows
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the server administrator to modify the limit on the number of
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess request header fields allowed in an HTTP request. A server needs
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess this value to be larger than the number of fields that a normal
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor client request might include. The number of request header fields
030108b1816bcda3d925df65357feabdce83bc94slive used by a client rarely exceeds 20, but this may vary among
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd different client implementations, often depending upon the extent
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd to which a user has configured their browser to support detailed
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd content negotiation. Optional HTTP extensions are often expressed
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd using request header fields.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>This directive gives the server administrator greater
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive control over abnormal client request behavior, which may be
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess useful for avoiding some forms of denial-of-service attacks.
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess The value should be increased if normal clients see an error
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess response from the server that indicates too many fields were
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess sent in the request.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>For example:</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive LimitRequestFields 50
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding </example>
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
003f0c9fda6664daf5092a0e42f65ede20098153slive
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>LimitRequestFieldSize</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Limits the size of the HTTP request header allowed from the
80c4526970a11f37c0f8e3b82afdf03902dac3f3sliveclient</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>LimitRequestFieldsize <var>bytes</var></syntax>
fb77c505254b6e9c925e23e734463e87574f8f40kess<default>LimitRequestFieldsize 8190</default>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context></contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding <p>This directive specifies the number of <var>bytes</var>
fb77c505254b6e9c925e23e734463e87574f8f40kess that will be allowed in an HTTP request header.</p>
fb77c505254b6e9c925e23e734463e87574f8f40kess
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <p>The <directive>LimitRequestFieldSize</directive> directive
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd allows the server administrator to reduce or increase the limit
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd on the allowed size of an HTTP request header field. A server
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd needs this value to be large enough to hold any one header field
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive from a normal client request. The size of a normal request header
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding field will vary greatly among different client implementations,
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding often depending upon the extent to which a user has configured
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding their browser to support detailed content negotiation. SPNEGO
7654193c1faf603feec999850322ad79e6c551bcnd authentication headers can be up to 12392 bytes.</p>
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding
b24c77ceb4cea5ffa92536e19f0aa83608960dc4fielding <p>This directive gives the server administrator greater
c97e8972ab1f4dd167e3dc4db87daf91114009fbnd control over abnormal client request behavior, which may be
7654193c1faf603feec999850322ad79e6c551bcnd useful for avoiding some forms of denial-of-service attacks.</p>
7654193c1faf603feec999850322ad79e6c551bcnd
7654193c1faf603feec999850322ad79e6c551bcnd <p>For example:</p>
7654193c1faf603feec999850322ad79e6c551bcnd
7654193c1faf603feec999850322ad79e6c551bcnd <example>
7654193c1faf603feec999850322ad79e6c551bcnd LimitRequestFieldSize 4094
7654193c1faf603feec999850322ad79e6c551bcnd </example>
7654193c1faf603feec999850322ad79e6c551bcnd
7654193c1faf603feec999850322ad79e6c551bcnd <note>Under normal conditions, the value should not be changed from
7654193c1faf603feec999850322ad79e6c551bcnd the default.</note>
7654193c1faf603feec999850322ad79e6c551bcnd
7654193c1faf603feec999850322ad79e6c551bcnd</usage>
c97e8972ab1f4dd167e3dc4db87daf91114009fbnd</directivesynopsis>
7654193c1faf603feec999850322ad79e6c551bcnd
7654193c1faf603feec999850322ad79e6c551bcnd<directivesynopsis>
7654193c1faf603feec999850322ad79e6c551bcnd<name>LimitRequestLine</name>
439acee10571861c670c438038a62f90a08bf137covener<description>Limit the size of the HTTP request line that will be accepted
439acee10571861c670c438038a62f90a08bf137covenerfrom the client</description>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor<syntax>LimitRequestLine <var>bytes</var></syntax>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor<default>LimitRequestLine 8190</default>
439acee10571861c670c438038a62f90a08bf137covener<contextlist><context>server config</context></contextlist>
439acee10571861c670c438038a62f90a08bf137covener
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>This directive sets the number of <var>bytes</var> that will be
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener allowed on the HTTP request-line.</p>
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener <p>The <directive>LimitRequestLine</directive> directive allows
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener the server administrator to reduce or increase the limit on the allowed size
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener of a client's HTTP request-line. Since the request-line consists of the
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener HTTP method, URI, and protocol version, the
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener <directive>LimitRequestLine</directive> directive places a
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener restriction on the length of a request-URI allowed for a request
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener on the server. A server needs this value to be large enough to
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener hold any of its resource names, including any information that
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener might be passed in the query part of a <code>GET</code> request.</p>
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener <p>This directive gives the server administrator greater
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener control over abnormal client request behavior, which may be
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor useful for avoiding some forms of denial-of-service attacks.</p>
df5042f69eea159c73cd7b16542d4ca7d879b0b5trawick
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener <p>For example:</p>
c3e2e664a67b1adb9b6a6b91ff161f4f562cecf6covener
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive LimitRequestLine 4094
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
fb77c505254b6e9c925e23e734463e87574f8f40kess <note>Under normal conditions, the value should not be changed from
fb77c505254b6e9c925e23e734463e87574f8f40kess the default.</note>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>LimitXMLRequestBody</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Limits the size of an XML-based request body</description>
fb77c505254b6e9c925e23e734463e87574f8f40kess<syntax>LimitXMLRequestBody <var>bytes</var></syntax>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess<default>LimitXMLRequestBody 1000000</default>
9b5e2c5e769dc678a1aca06df75c32022b2f1492trawick<contextlist><context>server config</context><context>virtual host</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<context>directory</context><context>.htaccess</context></contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<override>All</override>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
9ed9eaf871c58d281af02e76125ceadb5060afa5nd <p>Limit (in bytes) on maximum size of an XML-based request
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive body. A value of <code>0</code> will disable any checking.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>Example:</p>
fb77c505254b6e9c925e23e734463e87574f8f40kess
fb77c505254b6e9c925e23e734463e87574f8f40kess <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive LimitXMLRequestBody 0
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
fb77c505254b6e9c925e23e734463e87574f8f40kess</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis type="section">
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>Location</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Applies the enclosed directives only to matching
fb77c505254b6e9c925e23e734463e87574f8f40kessURLs</description>
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd<syntax>&lt;Location
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd <var>URL-path</var>|<var>URL</var>&gt; ... &lt;/Location&gt;</syntax>
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd<contextlist><context>server config</context><context>virtual host</context>
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd</contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The <directive type="section">Location</directive> directive
750d12c59545dbbac70390988de94f7e901b08f2niq limits the scope of the enclosed directives by URL. It is similar to the
750d12c59545dbbac70390988de94f7e901b08f2niq <directive type="section" module="core">Directory</directive>
750d12c59545dbbac70390988de94f7e901b08f2niq directive, and starts a subsection which is terminated with a
750d12c59545dbbac70390988de94f7e901b08f2niq <code>&lt;/Location&gt;</code> directive. <directive
750d12c59545dbbac70390988de94f7e901b08f2niq type="section">Location</directive> sections are processed in the
750d12c59545dbbac70390988de94f7e901b08f2niq order they appear in the configuration file, after the <directive
750d12c59545dbbac70390988de94f7e901b08f2niq type="section" module="core">Directory</directive> sections and
750d12c59545dbbac70390988de94f7e901b08f2niq <code>.htaccess</code> files are read, and after the <directive
750d12c59545dbbac70390988de94f7e901b08f2niq type="section" module="core">Files</directive> sections.</p>
750d12c59545dbbac70390988de94f7e901b08f2niq
750d12c59545dbbac70390988de94f7e901b08f2niq <p><directive type="section">Location</directive> sections operate
750d12c59545dbbac70390988de94f7e901b08f2niq completely outside the filesystem. This has several consequences.
750d12c59545dbbac70390988de94f7e901b08f2niq Most importantly, <directive type="section">Location</directive>
750d12c59545dbbac70390988de94f7e901b08f2niq directives should not be used to control access to filesystem
750d12c59545dbbac70390988de94f7e901b08f2niq locations. Since several different URLs may map to the same
750d12c59545dbbac70390988de94f7e901b08f2niq filesystem location, such access controls may by circumvented.</p>
750d12c59545dbbac70390988de94f7e901b08f2niq
6b15044d54a096e6323ff1540f1a491e8de7622dsf <note><title>When to use <directive
750d12c59545dbbac70390988de94f7e901b08f2niq type="section">Location</directive></title>
750d12c59545dbbac70390988de94f7e901b08f2niq
6b15044d54a096e6323ff1540f1a491e8de7622dsf <p>Use <directive type="section">Location</directive> to apply
6b15044d54a096e6323ff1540f1a491e8de7622dsf directives to content that lives outside the filesystem. For
6b15044d54a096e6323ff1540f1a491e8de7622dsf content that lives in the filesystem, use <directive
6b15044d54a096e6323ff1540f1a491e8de7622dsf type="section" module="core">Directory</directive> and <directive
6b15044d54a096e6323ff1540f1a491e8de7622dsf type="section" module="core">Files</directive>. An exception is
6b15044d54a096e6323ff1540f1a491e8de7622dsf <code>&lt;Location /&gt;</code>, which is an easy way to
1a0ca5f6b566a5eb77d63f466fcf78fb388a4182igalic apply a configuration to the entire server.</p>
1a0ca5f6b566a5eb77d63f466fcf78fb388a4182igalic </note>
011e567af90fe9d72bbabf8cc5e373b4436b9d08rbowen
1a0ca5f6b566a5eb77d63f466fcf78fb388a4182igalic <p>For all origin (non-proxy) requests, the URL to be matched is a
1a0ca5f6b566a5eb77d63f466fcf78fb388a4182igalic URL-path of the form <code>/path/</code>. No scheme, hostname,
6b15044d54a096e6323ff1540f1a491e8de7622dsf port, or query string may be included. For proxy requests, the
6b15044d54a096e6323ff1540f1a491e8de7622dsf URL to be matched is of the form
6b15044d54a096e6323ff1540f1a491e8de7622dsf <code>scheme://servername/path</code>, and you must include the
6b15044d54a096e6323ff1540f1a491e8de7622dsf prefix.</p>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf <p>The URL may use wildcards. In a wild-card string, <code>?</code> matches
750d12c59545dbbac70390988de94f7e901b08f2niq any single character, and <code>*</code> matches any sequences of
750d12c59545dbbac70390988de94f7e901b08f2niq characters.</p>
94aba9caa9b2f7a0e95a55f51264c908b69470e2igalic
94aba9caa9b2f7a0e95a55f51264c908b69470e2igalic <p>Extended regular
6b15044d54a096e6323ff1540f1a491e8de7622dsf expressions can also be used, with the addition of the
6b15044d54a096e6323ff1540f1a491e8de7622dsf <code>~</code> character. For example:</p>
750d12c59545dbbac70390988de94f7e901b08f2niq
750d12c59545dbbac70390988de94f7e901b08f2niq <example>
750d12c59545dbbac70390988de94f7e901b08f2niq &lt;Location ~ "/(extra|special)/data"&gt;
6b15044d54a096e6323ff1540f1a491e8de7622dsf </example>
6b15044d54a096e6323ff1540f1a491e8de7622dsf
6b15044d54a096e6323ff1540f1a491e8de7622dsf <p>would match URLs that contained the substring <code>/extra/data</code>
750d12c59545dbbac70390988de94f7e901b08f2niq or <code>/special/data</code>. The directive <directive
750d12c59545dbbac70390988de94f7e901b08f2niq type="section" module="core">LocationMatch</directive> behaves
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive identical to the regex version of <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive type="section">Location</directive>.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The <directive type="section">Location</directive>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd functionality is especially useful when combined with the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <directive module="core">SetHandler</directive>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive directive. For example, to enable status requests, but allow them
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive only from browsers at <code>foo.com</code>, you might use:</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
003f0c9fda6664daf5092a0e42f65ede20098153slive <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;Location /status&gt;<br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <indent>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd SetHandler server-status<br />
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd Order Deny,Allow<br />
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd Deny from all<br />
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd Allow from .foo.com<br />
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd </indent>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd &lt;/Location&gt;
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <note><title>Note about / (slash)</title>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The slash character has special meaning depending on where in a
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive URL it appears. People may be used to its behavior in the filesystem
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd where multiple adjacent slashes are frequently collapsed to a single
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive slash (<em>i.e.</em>, <code>/home///foo</code> is the same as
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <code>/home/foo</code>). In URL-space this is not necessarily true.
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive The <directive type="section" module="core">LocationMatch</directive>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive directive and the regex version of <directive type="section"
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive >Location</directive> require you to explicitly specify multiple
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive slashes if that is your intention.</p>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>For example, <code>&lt;LocationMatch ^/abc&gt;</code> would match
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd the request URL <code>/abc</code> but not the request URL <code>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive //abc</code>. The (non-regex) <directive type="section"
6e483e0b8aa3fa574288a7452221392a03e2b9a3noodl >Location</directive> directive behaves similarly when used for
6e483e0b8aa3fa574288a7452221392a03e2b9a3noodl proxy requests. But when (non-regex) <directive type="section"
6e483e0b8aa3fa574288a7452221392a03e2b9a3noodl >Location</directive> is used for non-proxy requests it will
6e483e0b8aa3fa574288a7452221392a03e2b9a3noodl implicitly match multiple slashes with a single slash. For example,
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive if you specify <code>&lt;Location /abc/def&gt;</code> and the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive request is to <code>/abc//def</code> then it will match.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </note>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><a href="/sections.html">How &lt;Directory&gt;, &lt;Location&gt;
130d299c4b2b15be45532a176604c71fdc7bea5bnd and &lt;Files&gt; sections work</a> for an explanation of how these
a00429a6b3b4dbb113b6dc67cfc0507f610276e9takashi different sections are combined when a request is received</seealso>
130d299c4b2b15be45532a176604c71fdc7bea5bnd</directivesynopsis>
130d299c4b2b15be45532a176604c71fdc7bea5bnd
130d299c4b2b15be45532a176604c71fdc7bea5bnd<directivesynopsis type="section">
130d299c4b2b15be45532a176604c71fdc7bea5bnd<name>LocationMatch</name>
a00429a6b3b4dbb113b6dc67cfc0507f610276e9takashi<description>Applies the enclosed directives only to regular-expression
a00429a6b3b4dbb113b6dc67cfc0507f610276e9takashimatching URLs</description>
955d7fc3e7adb6463b7243e15c04e858718e799etakashi<syntax>&lt;LocationMatch
955d7fc3e7adb6463b7243e15c04e858718e799etakashi <var>regex</var>&gt; ... &lt;/LocationMatch&gt;</syntax>
955d7fc3e7adb6463b7243e15c04e858718e799etakashi<contextlist><context>server config</context><context>virtual host</context>
955d7fc3e7adb6463b7243e15c04e858718e799etakashi</contextlist>
955d7fc3e7adb6463b7243e15c04e858718e799etakashi
955d7fc3e7adb6463b7243e15c04e858718e799etakashi<usage>
955d7fc3e7adb6463b7243e15c04e858718e799etakashi <p>The <directive type="section">LocationMatch</directive> directive
955d7fc3e7adb6463b7243e15c04e858718e799etakashi limits the scope of the enclosed directives by URL, in an identical manner
955d7fc3e7adb6463b7243e15c04e858718e799etakashi to <directive module="core" type="section">Location</directive>. However,
955d7fc3e7adb6463b7243e15c04e858718e799etakashi it takes a regular expression as an argument instead of a simple
78f97ce162b66a0dbfd7af4dcd9984f162569b04minfrin string. For example:</p>
955d7fc3e7adb6463b7243e15c04e858718e799etakashi
955d7fc3e7adb6463b7243e15c04e858718e799etakashi <example>
955d7fc3e7adb6463b7243e15c04e858718e799etakashi &lt;LocationMatch "/(extra|special)/data"&gt;
955d7fc3e7adb6463b7243e15c04e858718e799etakashi </example>
130d299c4b2b15be45532a176604c71fdc7bea5bnd
130d299c4b2b15be45532a176604c71fdc7bea5bnd <p>would match URLs that contained the substring <code>/extra/data</code>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd or <code>/special/data</code>.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><a href="/sections.html">How &lt;Directory&gt;, &lt;Location&gt;
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive and &lt;Files&gt; sections work</a> for an explanation of how these
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive different sections are combined when a request is received</seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
a04a96aae08a62f2d9d5833b3313a9751fa3f680yoshiki
55d36f9b61520c2374ab463e77e8a62daa416398nd<directivesynopsis>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess<name>LogLevel</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Controls the verbosity of the ErrorLog</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>LogLevel <var>level</var></syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<default>LogLevel warn</default>
003f0c9fda6664daf5092a0e42f65ede20098153slive<contextlist><context>server config</context><context>virtual host</context>
55d36f9b61520c2374ab463e77e8a62daa416398nd</contextlist>
55d36f9b61520c2374ab463e77e8a62daa416398nd
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p><directive>LogLevel</directive> adjusts the verbosity of the
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd messages recorded in the error logs (see <directive
fb77c505254b6e9c925e23e734463e87574f8f40kess module="core">ErrorLog</directive> directive). The following
fb77c505254b6e9c925e23e734463e87574f8f40kess <var>level</var>s are available, in order of decreasing
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd significance:</p>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <table border="1">
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <columnspec><column width=".2"/><column width=".3"/><column width=".5"/>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd </columnspec>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <tr>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <th><strong>Level</strong> </th>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
55d36f9b61520c2374ab463e77e8a62daa416398nd <th><strong>Description</strong> </th>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
55d36f9b61520c2374ab463e77e8a62daa416398nd <th><strong>Example</strong> </th>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </tr>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <tr>
55d36f9b61520c2374ab463e77e8a62daa416398nd <td><code>emerg</code> </td>
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <td>Emergencies - system is unusable.</td>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
55d36f9b61520c2374ab463e77e8a62daa416398nd <td>"Child cannot open lock file. Exiting"</td>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd </tr>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
55d36f9b61520c2374ab463e77e8a62daa416398nd <tr>
55d36f9b61520c2374ab463e77e8a62daa416398nd <td><code>alert</code> </td>
55d36f9b61520c2374ab463e77e8a62daa416398nd
55d36f9b61520c2374ab463e77e8a62daa416398nd <td>Action must be taken immediately.</td>
55d36f9b61520c2374ab463e77e8a62daa416398nd
bea526116133aa3d7dabd1924bfc580b37fbf22aslive <td>"getpwuid: couldn't determine user name from uid"</td>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </tr>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <tr>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <td><code>crit</code> </td>
bea526116133aa3d7dabd1924bfc580b37fbf22aslive
bea526116133aa3d7dabd1924bfc580b37fbf22aslive <td>Critical Conditions.</td>
bea526116133aa3d7dabd1924bfc580b37fbf22aslive
fb77c505254b6e9c925e23e734463e87574f8f40kess <td>"socket: Failed to get a socket, exiting child"</td>
bea526116133aa3d7dabd1924bfc580b37fbf22aslive </tr>
bea526116133aa3d7dabd1924bfc580b37fbf22aslive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <tr>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <td><code>error</code> </td>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <td>Error conditions.</td>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <td>"Premature end of script headers"</td>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </tr>
3621f3acee323a877639a96d84891095eb07933aminfrin
003f0c9fda6664daf5092a0e42f65ede20098153slive <tr>
003f0c9fda6664daf5092a0e42f65ede20098153slive <td><code>warn</code> </td>
003f0c9fda6664daf5092a0e42f65ede20098153slive
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin <td>Warning conditions.</td>
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <td>"child process 1234 did not exit, sending another
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive SIGHUP"</td>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </tr>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <tr>
5b258a8d58679c6587757189339bb3c2d0488f93poirier <td><code>notice</code> </td>
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin <td>Normal but significant condition.</td>
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen <td>"httpd: caught SIGBUS, attempting to dump core in
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin ..."</td>
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin </tr>
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin <tr>
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin <td><code>info</code> </td>
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin
3621f3acee323a877639a96d84891095eb07933aminfrin <td>Informational.</td>
3621f3acee323a877639a96d84891095eb07933aminfrin
3621f3acee323a877639a96d84891095eb07933aminfrin <td>"Server seems busy, (you may need to increase
3621f3acee323a877639a96d84891095eb07933aminfrin StartServers, or Min/MaxSpareServers)..."</td>
3621f3acee323a877639a96d84891095eb07933aminfrin </tr>
3621f3acee323a877639a96d84891095eb07933aminfrin
3621f3acee323a877639a96d84891095eb07933aminfrin <tr>
3621f3acee323a877639a96d84891095eb07933aminfrin <td><code>debug</code> </td>
3621f3acee323a877639a96d84891095eb07933aminfrin
3621f3acee323a877639a96d84891095eb07933aminfrin <td>Debug-level messages</td>
b89fea36d9c12cec3344576824f4e6798da90ad4rbowen
3621f3acee323a877639a96d84891095eb07933aminfrin <td>"Opening config file ..."</td>
3621f3acee323a877639a96d84891095eb07933aminfrin </tr>
3621f3acee323a877639a96d84891095eb07933aminfrin </table>
3621f3acee323a877639a96d84891095eb07933aminfrin
3621f3acee323a877639a96d84891095eb07933aminfrin <p>When a particular level is specified, messages from all
3621f3acee323a877639a96d84891095eb07933aminfrin other levels of higher significance will be reported as well.
3621f3acee323a877639a96d84891095eb07933aminfrin <em>E.g.</em>, when <code>LogLevel info</code> is specified,
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin then messages with log levels of <code>notice</code> and
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin <code>warn</code> will also be posted.</p>
3621f3acee323a877639a96d84891095eb07933aminfrin
03aa31ad82759363ba1a55589e517b16308ef635minfrin <p>Using a level of at least <code>crit</code> is
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor recommended.</p>
c68acc9d712af079afa2bd1a5a4aeef9a3ea573ckess
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>For example:</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd LogLevel notice
7b5535ed88e0f561b3bfb3330137bd804846afd4slive </example>
7b5535ed88e0f561b3bfb3330137bd804846afd4slive
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <note><title>Note</title>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <p>When logging to a regular file messages of the level
7b5535ed88e0f561b3bfb3330137bd804846afd4slive <code>notice</code> cannot be suppressed and thus are always
7b5535ed88e0f561b3bfb3330137bd804846afd4slive logged. However, this doesn't apply when logging is done
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd using <code>syslog</code>.</p>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd </note>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd</usage>
7b5535ed88e0f561b3bfb3330137bd804846afd4slive</directivesynopsis>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin<directivesynopsis>
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin<name>MaxKeepAliveRequests</name>
3621f3acee323a877639a96d84891095eb07933aminfrin<description>Number of requests allowed on a persistent
3621f3acee323a877639a96d84891095eb07933aminfrinconnection</description>
3621f3acee323a877639a96d84891095eb07933aminfrin<syntax>MaxKeepAliveRequests <var>number</var></syntax>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor<default>MaxKeepAliveRequests 100</default>
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin<contextlist><context>server config</context><context>virtual host</context>
3621f3acee323a877639a96d84891095eb07933aminfrin</contextlist>
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin<usage>
cf8a8738330694e60bad421fcc8361d80b0e9124minfrin <p>The <directive>MaxKeepAliveRequests</directive> directive
3621f3acee323a877639a96d84891095eb07933aminfrin limits the number of requests allowed per connection when
3621f3acee323a877639a96d84891095eb07933aminfrin <directive module="core" >KeepAlive</directive> is on. If it is
03aa31ad82759363ba1a55589e517b16308ef635minfrin set to <code>0</code>, unlimited requests will be allowed. We
3621f3acee323a877639a96d84891095eb07933aminfrin recommend that this setting be kept to a high value for maximum
3621f3acee323a877639a96d84891095eb07933aminfrin server performance.</p>
3621f3acee323a877639a96d84891095eb07933aminfrin
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor <p>For example:</p>
3621f3acee323a877639a96d84891095eb07933aminfrin
3621f3acee323a877639a96d84891095eb07933aminfrin <example>
03aa31ad82759363ba1a55589e517b16308ef635minfrin MaxKeepAliveRequests 500
3621f3acee323a877639a96d84891095eb07933aminfrin </example>
3621f3acee323a877639a96d84891095eb07933aminfrin</usage>
3621f3acee323a877639a96d84891095eb07933aminfrin</directivesynopsis>
03aa31ad82759363ba1a55589e517b16308ef635minfrin
03aa31ad82759363ba1a55589e517b16308ef635minfrin<directivesynopsis>
03aa31ad82759363ba1a55589e517b16308ef635minfrin<name>NameVirtualHost</name>
03aa31ad82759363ba1a55589e517b16308ef635minfrin<description>Designates an IP address for name-virtual
03aa31ad82759363ba1a55589e517b16308ef635minfrinhosting</description>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor<syntax>NameVirtualHost <var>addr</var>[:<var>port</var>]</syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context></contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
003f0c9fda6664daf5092a0e42f65ede20098153slive<usage>
fb77c505254b6e9c925e23e734463e87574f8f40kess <p>The <directive>NameVirtualHost</directive> directive is a
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive required directive if you want to configure <a
18b4b0fd6056093002ddef488636bf5ebe415ef0erikabele href="/vhosts/">name-based virtual hosts</a>.</p>
18b4b0fd6056093002ddef488636bf5ebe415ef0erikabele
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>Although <var>addr</var> can be hostname it is recommended
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive that you always use an IP address, e.g.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive NameVirtualHost 111.22.33.44
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <p>With the <directive>NameVirtualHost</directive> directive you
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess specify the IP address on which the server will receive requests
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive for the name-based virtual hosts. This will usually be the address
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive to which your name-based virtual host names resolve. In cases
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive where a firewall or other proxy receives the requests and forwards
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive them on a different IP address to the server, you must specify the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive IP address of the physical interface on the machine which will be
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive servicing the requests. If you have multiple name-based hosts on
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive multiple addresses, repeat the directive for each address.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <note><title>Note</title>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>Note, that the "main server" and any <code>_default_</code> servers
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive will <strong>never</strong> be served for a request to a
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <directive>NameVirtualHost</directive> IP address (unless for some
891df99fdfa41fc8a486568f4d31ddf4a571258adreid reason you specify <directive>NameVirtualHost</directive> but then
891df99fdfa41fc8a486568f4d31ddf4a571258adreid don't define any <directive>VirtualHost</directive>s for that
59368b594c9b09b59ae58c7de26d2d5ce1c99a29takashi address).</p>
be192cefa381d5bae6868034687471754cb43175sf </note>
891df99fdfa41fc8a486568f4d31ddf4a571258adreid
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>Optionally you can specify a port number on which the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive name-based virtual hosts should be used, e.g.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive NameVirtualHost 111.22.33.44:8080
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick </example>
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick <p>IPv6 addresses must be enclosed in square brackets, as shown
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick in the following example:</p>
9f38f3ec3e8087985d108a24ae796962fef83644takashi
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick <example>
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick NameVirtualHost [fe80::a00:20ff:fea7:ccea]:8080
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick </example>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen <p>To receive requests on all interfaces, you can use an argument of
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick <code>*</code></p>
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen <example>
9f38f3ec3e8087985d108a24ae796962fef83644takashi NameVirtualHost *
9f38f3ec3e8087985d108a24ae796962fef83644takashi </example>
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick <note><title>Argument to <directive type="section">VirtualHost</directive>
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick directive</title>
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick <p>Note that the argument to the <directive
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick type="section">VirtualHost</directive> directive must
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick exactly match the argument to the <directive
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick >NameVirtualHost</directive> directive.</p>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor
85349f40d98fb3fc7a18ef25dc40eaaae6eead1ctakashi <example>
ffec3e56ff5331a2d732ec07e9d107303fed43f4covener NameVirtualHost 1.2.3.4<br />
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick &lt;VirtualHost 1.2.3.4&gt;<br />
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick # ...<br />
98f5034c8cbf2ef025b317b3e01acae82e143b11trawick &lt;/VirtualHost&gt;<br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </note>
003f0c9fda6664daf5092a0e42f65ede20098153slive</usage>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<seealso><a href="/vhosts/">Virtual Hosts
80c4526970a11f37c0f8e3b82afdf03902dac3f3slivedocumentation</a></seealso>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>Options</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Configures what features are available in a particular
80c4526970a11f37c0f8e3b82afdf03902dac3f3slivedirectory</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>Options
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive [+|-]<var>option</var> [[+|-]<var>option</var>] ...</syntax>
130d299c4b2b15be45532a176604c71fdc7bea5bnd<default>Options All</default>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context><context>virtual host</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<context>directory</context><context>.htaccess</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<override>Options</override>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess<usage>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <p>The <directive>Options</directive> directive controls which
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess server features are available in a particular directory.</p>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p><var>option</var> can be set to <code>None</code>, in which
130d299c4b2b15be45532a176604c71fdc7bea5bnd case none of the extra features are enabled, or one or more of
130d299c4b2b15be45532a176604c71fdc7bea5bnd the following:</p>
130d299c4b2b15be45532a176604c71fdc7bea5bnd
130d299c4b2b15be45532a176604c71fdc7bea5bnd <dl>
130d299c4b2b15be45532a176604c71fdc7bea5bnd <dt><code>All</code></dt>
130d299c4b2b15be45532a176604c71fdc7bea5bnd
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <dd>All options except for <code>MultiViews</code>. This is the default
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd setting.</dd>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <dt><code>ExecCGI</code></dt>
6c5c651b0b97607b8c8b4965c1385c67699f217fnd
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <dd>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd Execution of CGI scripts using <module>mod_cgi</module>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd is permitted.</dd>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
6c5c651b0b97607b8c8b4965c1385c67699f217fnd <dt><code>FollowSymLinks</code></dt>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd
750d12c59545dbbac70390988de94f7e901b08f2niq <dd>
4bb78e7cdd53f50240cff4ad7a97c7ed36483797slive
4bb78e7cdd53f50240cff4ad7a97c7ed36483797slive The server will follow symbolic links in this directory.
4bb78e7cdd53f50240cff4ad7a97c7ed36483797slive <note>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd <p>Even though the server follows the symlink it does <em>not</em>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd change the pathname used to match against <directive type="section"
4bb78e7cdd53f50240cff4ad7a97c7ed36483797slive module="core">Directory</directive> sections.</p>
4bb78e7cdd53f50240cff4ad7a97c7ed36483797slive <p>Note also, that this option <strong>gets ignored</strong> if set
4bb78e7cdd53f50240cff4ad7a97c7ed36483797slive inside a <directive type="section" module="core">Location</directive>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd section.</p>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd </note></dd>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd <dt><code>Includes</code></dt>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd <dd>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd Server-side includes provided by <module>mod_include</module>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd are permitted.</dd>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd <dt><code>IncludesNOEXEC</code></dt>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd <dd>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd Server-side includes are permitted, but the <code>#exec
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd cmd</code> and <code>#exec cgi</code> are disabled. It is still
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd possible to <code>#include virtual</code> CGI scripts from
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd <directive module="mod_alias">ScriptAlias</directive>ed
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd directories.</dd>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd <dt><code>Indexes</code></dt>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd <dd>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd If a URL which maps to a directory is requested, and there
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd is no <directive module="mod_dir">DirectoryIndex</directive>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor (<em>e.g.</em>, <code>index.html</code>) in that directory, then
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd <module>mod_autoindex</module> will return a formatted listing
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd of the directory.</dd>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd <dt><code>MultiViews</code></dt>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd <dd>
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd <a href="/content-negotiation.html">Content negotiated</a>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive "MultiViews" are allowed using
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <module>mod_negotiation</module>.</dd>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <dt><code>SymLinksIfOwnerMatch</code></dt>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <dd>The server will only follow symbolic links for which the
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess target file or directory is owned by the same user id as the
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd link.
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd <note><title>Note</title> This option gets ignored if
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive set inside a <directive module="core"
7245e9b991db85d9d9a587fe5f4051f642ebdc3cchrisd type="section">Location</directive> section.</note>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </dd>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </dl>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen <p>Normally, if multiple <directive>Options</directive> could
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen apply to a directory, then the most specific one is used and
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess others are ignored; the options are not merged. (See <a
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen href="/sections.html#mergin">how sections are merged</a>.)
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive However if <em>all</em> the options on the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <directive>Options</directive> directive are preceded by a
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>+</code> or <code>-</code> symbol, the options are
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive merged. Any options preceded by a <code>+</code> are added to the
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen options currently in force, and any options preceded by a
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen <code>-</code> are removed from the options currently in
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen force. </p>
130d299c4b2b15be45532a176604c71fdc7bea5bnd
130d299c4b2b15be45532a176604c71fdc7bea5bnd <p>For example, without any <code>+</code> and <code>-</code> symbols:</p>
130d299c4b2b15be45532a176604c71fdc7bea5bnd
130d299c4b2b15be45532a176604c71fdc7bea5bnd <example>
130d299c4b2b15be45532a176604c71fdc7bea5bnd &lt;Directory /web/docs&gt;<br />
7ef9b6763ad87846cf83c3f71467f43e349d080aerikabele <indent>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen Options Indexes FollowSymLinks<br />
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen </indent>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;/Directory&gt;<br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <br />
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive &lt;Directory /web/docs/spec&gt;<br />
03e0a375c2435102fb2b51e34cccff52acbfddcdnd <indent>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd Options Includes<br />
03e0a375c2435102fb2b51e34cccff52acbfddcdnd </indent>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd &lt;/Directory&gt;
03e0a375c2435102fb2b51e34cccff52acbfddcdnd </example>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd
03e0a375c2435102fb2b51e34cccff52acbfddcdnd <p>then only <code>Includes</code> will be set for the
03e0a375c2435102fb2b51e34cccff52acbfddcdnd <code>/web/docs/spec</code> directory. However if the second
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen <directive>Options</directive> directive uses the <code>+</code> and
03e0a375c2435102fb2b51e34cccff52acbfddcdnd <code>-</code> symbols:</p>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd
03e0a375c2435102fb2b51e34cccff52acbfddcdnd <example>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd &lt;Directory /web/docs&gt;<br />
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen <indent>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd Options Indexes FollowSymLinks<br />
03e0a375c2435102fb2b51e34cccff52acbfddcdnd </indent>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd &lt;/Directory&gt;<br />
03e0a375c2435102fb2b51e34cccff52acbfddcdnd <br />
03e0a375c2435102fb2b51e34cccff52acbfddcdnd &lt;Directory /web/docs/spec&gt;<br />
03e0a375c2435102fb2b51e34cccff52acbfddcdnd <indent>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd Options +Includes -Indexes<br />
03e0a375c2435102fb2b51e34cccff52acbfddcdnd </indent>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd &lt;/Directory&gt;
03e0a375c2435102fb2b51e34cccff52acbfddcdnd </example>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd
03e0a375c2435102fb2b51e34cccff52acbfddcdnd <p>then the options <code>FollowSymLinks</code> and
03e0a375c2435102fb2b51e34cccff52acbfddcdnd <code>Includes</code> are set for the <code>/web/docs/spec</code>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd directory.</p>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd
03e0a375c2435102fb2b51e34cccff52acbfddcdnd <note><title>Note</title>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd <p>Using <code>-IncludesNOEXEC</code> or
03e0a375c2435102fb2b51e34cccff52acbfddcdnd <code>-Includes</code> disables server-side includes completely
03e0a375c2435102fb2b51e34cccff52acbfddcdnd regardless of the previous setting.</p>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd </note>
03e0a375c2435102fb2b51e34cccff52acbfddcdnd
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The default in the absence of any other settings is
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>All</code>.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>Require</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Selects which authenticated users can access
80c4526970a11f37c0f8e3b82afdf03902dac3f3slivea resource</description>
003f0c9fda6664daf5092a0e42f65ede20098153slive<syntax>Require <var>entity-name</var> [<var>entity-name</var>] ...</syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>directory</context><context>.htaccess</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</contextlist>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<override>AuthConfig</override>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
6fad623c3cc52b4a84d4d36538f6eed886f49f98covener<usage>
6fad623c3cc52b4a84d4d36538f6eed886f49f98covener <p>This directive selects which authenticated users can access
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive a resource. The allowed syntaxes are:</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <dl>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <dt><code>Require user <var>userid</var> [<var>userid</var>]
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive ...</code></dt>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <dd>Only the named users can access the resource.</dd>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <dt><code>Require group <var>group-name</var> [<var>group-name</var>]
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive ...</code></dt>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <dd>Only users in the named groups can access the resource.</dd>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess
fb77c505254b6e9c925e23e734463e87574f8f40kess <dt><code>Require valid-user</code></dt>
fb77c505254b6e9c925e23e734463e87574f8f40kess <dd>All valid users can access the resource.</dd>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </dl>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p><directive>Require</directive> must be accompanied by
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <directive module="core">AuthName</directive> and <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="core">AuthType</directive> directives, and directives such
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen as <directive module="mod_authn_file">AuthUserFile</directive>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen and <directive module="mod_authz_groupfile">AuthGroupFile</directive> (to
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess define users and groups) in order to work correctly. Example:</p>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen <example>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen AuthType Basic<br />
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd AuthName "Restricted Resource"<br />
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen AuthUserFile /web/users<br />
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor AuthGroupFile /web/groups<br />
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor Require group admin
6fad623c3cc52b4a84d4d36538f6eed886f49f98covener </example>
6fad623c3cc52b4a84d4d36538f6eed886f49f98covener
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen <p>Access controls which are applied in this way are effective for
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <strong>all</strong> methods. <strong>This is what is normally
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive desired.</strong> If you wish to apply access controls only to
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive specific methods, while leaving other methods unprotected, then
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive place the <directive>Require</directive> statement into a
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <directive module="core" type="section">Limit</directive>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess section.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<seealso><directive module="core">Satisfy</directive></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><module>mod_authz_host</module></seealso>
e0ef044feba0082771091af42798cada5bb1f4fcrbowen</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<name>RLimitCPU</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Limits the CPU consumption of processes launched
80c4526970a11f37c0f8e3b82afdf03902dac3f3sliveby Apache children</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>RLimitCPU <var>seconds</var>|max [<var>seconds</var>|max]</syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<default>Unset; uses operating system defaults</default>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context><context>virtual host</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<context>directory</context><context>.htaccess</context></contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<override>All</override>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>Takes 1 or 2 parameters. The first parameter sets the soft
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive resource limit for all processes and the second parameter sets
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the maximum resource limit. Either parameter can be a number,
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive or <code>max</code> to indicate to the server that the limit should
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive be set to the maximum allowed by the operating system
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive configuration. Raising the maximum resource limit requires that
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the server is running as <code>root</code>, or in the initial startup
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive phase.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>This applies to processes forked off from Apache children
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive servicing requests, not the Apache children themselves. This
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive includes CGI scripts and SSI exec commands, but not any
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen processes forked off from the Apache parent such as piped
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen logs.</p>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen <p>CPU resource limits are expressed in seconds per
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd process.</p>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen</usage>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<seealso><directive module="core">RLimitMEM</directive></seealso>
2f505ba07f89ba6a175d6ceae67fb273c4eb0993covener<seealso><directive module="core">RLimitNPROC</directive></seealso>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor</directivesynopsis>
611f7fd8a0a5ee4a29eeed79dfd8bf6faaa3c613covener
ffec3e56ff5331a2d732ec07e9d107303fed43f4covener<directivesynopsis>
611f7fd8a0a5ee4a29eeed79dfd8bf6faaa3c613covener<name>RLimitMEM</name>
611f7fd8a0a5ee4a29eeed79dfd8bf6faaa3c613covener<description>Limits the memory consumption of processes launched
80c4526970a11f37c0f8e3b82afdf03902dac3f3sliveby Apache children</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>RLimitMEM <var>bytes</var>|max [<var>bytes</var>|max]</syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<default>Unset; uses operating system defaults</default>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context><context>virtual host</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<context>directory</context><context>.htaccess</context></contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<override>All</override>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
ae134ecc8faf4e6a8eb68e1c3724506771442a46rbowen<usage>
ae134ecc8faf4e6a8eb68e1c3724506771442a46rbowen <p>Takes 1 or 2 parameters. The first parameter sets the soft
e0ef044feba0082771091af42798cada5bb1f4fcrbowen resource limit for all processes and the second parameter sets
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the maximum resource limit. Either parameter can be a number,
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive or <code>max</code> to indicate to the server that the limit should
72580dbc2a55511f13f377063725b9f143b20826stoddard be set to the maximum allowed by the operating system
72580dbc2a55511f13f377063725b9f143b20826stoddard configuration. Raising the maximum resource limit requires that
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the server is running as <code>root</code>, or in the initial startup
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess phase.</p>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor
72580dbc2a55511f13f377063725b9f143b20826stoddard <p>This applies to processes forked off from Apache children
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor servicing requests, not the Apache children themselves. This
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor includes CGI scripts and SSI exec commands, but not any
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor processes forked off from the Apache parent such as piped
72580dbc2a55511f13f377063725b9f143b20826stoddard logs.</p>
56d7eed7205462540aec7202cd82d9f5516fc537kess
72580dbc2a55511f13f377063725b9f143b20826stoddard <p>Memory resource limits are expressed in bytes per
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive process.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><directive module="core">RLimitCPU</directive></seealso>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<seealso><directive module="core">RLimitNPROC</directive></seealso>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen</directivesynopsis>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<directivesynopsis>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<name>RLimitNPROC</name>
ef8e89e090461194ecadd31e8796a2c51e0531a2kess<description>Limits the number of processes that can be launched by
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowenprocesses launched by Apache children</description>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<syntax>RLimitNPROC <var>number</var>|max [<var>number</var>|max]</syntax>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<default>Unset; uses operating system defaults</default>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<contextlist><context>server config</context><context>virtual host</context>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<context>directory</context><context>.htaccess</context></contextlist>
2f505ba07f89ba6a175d6ceae67fb273c4eb0993covener<override>All</override>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim<usage>
ffec3e56ff5331a2d732ec07e9d107303fed43f4covener <p>Takes 1 or 2 parameters. The first parameter sets the soft
611f7fd8a0a5ee4a29eeed79dfd8bf6faaa3c613covener resource limit for all processes and the second parameter sets
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the maximum resource limit. Either parameter can be a number,
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive or <code>max</code> to indicate to the server that the limit
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive should be set to the maximum allowed by the operating system
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive configuration. Raising the maximum resource limit requires that
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the server is running as <code>root</code>, or in the initial startup
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive phase.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <p>This applies to processes forked off from Apache children
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive servicing requests, not the Apache children themselves. This
e0ef044feba0082771091af42798cada5bb1f4fcrbowen includes CGI scripts and SSI exec commands, but not any
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive processes forked off from the Apache parent such as piped
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive logs.</p>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor
72580dbc2a55511f13f377063725b9f143b20826stoddard <p>Process limits control the number of processes per user.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <note><title>Note</title>
72580dbc2a55511f13f377063725b9f143b20826stoddard <p>If CGI processes are <strong>not</strong> running
72580dbc2a55511f13f377063725b9f143b20826stoddard under user ids other than the web server user id, this directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive will limit the number of processes that the server itself can
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive create. Evidence of this situation will be indicated by
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <strong><code>cannot fork</code></strong> messages in the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <code>error_log</code>.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </note>
fb77c505254b6e9c925e23e734463e87574f8f40kess</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><directive module="core">RLimitMEM</directive></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><directive module="core">RLimitCPU</directive></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<directivesynopsis>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<name>Satisfy</name>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<description>Interaction between host-level access control and
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowenuser authentication</description>
ef8e89e090461194ecadd31e8796a2c51e0531a2kess<syntax>Satisfy Any|All</syntax>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<default>Satisfy All</default>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<contextlist><context>directory</context><context>.htaccess</context>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen</contextlist>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<override>AuthConfig</override>
611f7fd8a0a5ee4a29eeed79dfd8bf6faaa3c613covener<compatibility>Influenced by <directive module="core" type="section"
2f505ba07f89ba6a175d6ceae67fb273c4eb0993covener>Limit</directive> and <directive module="core"
031bbbc0d1189b07330e38d0c126820a9ab7795egryzortype="section">LimitExcept</directive> in version 2.0.51 and
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjimlater</compatibility>
ffec3e56ff5331a2d732ec07e9d107303fed43f4covener
611f7fd8a0a5ee4a29eeed79dfd8bf6faaa3c613covener<usage>
611f7fd8a0a5ee4a29eeed79dfd8bf6faaa3c613covener <p>Access policy if both <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="mod_authz_host">Allow</directive> and <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="core">Require</directive> used. The parameter can be
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive either <code>All</code> or <code>Any</code>. This directive is only
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive useful if access to a particular area is being restricted by both
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive username/password <em>and</em> client host address. In this case
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the default behavior (<code>All</code>) is to require that the client
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess passes the address access restriction <em>and</em> enters a valid
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive username and password. With the <code>Any</code> option the client will be
18b4b0fd6056093002ddef488636bf5ebe415ef0erikabele granted access if they either pass the host restriction or enter a
18b4b0fd6056093002ddef488636bf5ebe415ef0erikabele valid username and password. This can be used to password restrict
18b4b0fd6056093002ddef488636bf5ebe415ef0erikabele an area, but to let clients from particular addresses in without
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive prompting for a password.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>For example, if you wanted to let people on your network have
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive unrestricted access to a portion of your website, but require that
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen people outside of your network provide a password, you could use a
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen configuration similar to the following:</p>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen <example>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd Require valid-user<br />
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen Allow from 192.168.1<br />
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen Satisfy Any
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>Since version 2.0.51 <directive>Satisfy</directive> directives can
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive be restricted to particular methods by <directive module="core"
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive type="section">Limit</directive> and <directive module="core" type="section"
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive >LimitExcept</directive> sections.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <seealso><directive module="mod_authz_host">Allow</directive></seealso>
fb77c505254b6e9c925e23e734463e87574f8f40kess <seealso><directive module="core">Require</directive></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>ScriptInterpreterSource</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Technique for locating the interpreter for CGI
6b64034fa2a644ba291c484c0c01c7df5b8d982ckessscripts</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>ScriptInterpreterSource Registry|Registry-Strict|Script</syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<default>ScriptInterpreterSource Script</default>
7852e17fb37b2a02ccdcab107f2c7f5fd41fd201nd<contextlist><context>server config</context><context>virtual host</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<context>directory</context><context>.htaccess</context></contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<override>FileInfo</override>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<compatibility>Win32 only;
80c4526970a11f37c0f8e3b82afdf03902dac3f3sliveoption <code>Registry-Strict</code> is available in Apache 2.0 and
80c4526970a11f37c0f8e3b82afdf03902dac3f3slivelater</compatibility>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive<usage>
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive <p>This directive is used to control how Apache finds the
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive interpreter used to run CGI scripts. The default setting is
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive <code>Script</code>. This causes Apache to use the interpreter pointed to
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive by the shebang line (first line, starting with <code>#!</code>) in the
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive script. On Win32 systems this line usually looks like:</p>
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive
d950cf9262224a223e2ff5c51393708071e14b94covener <example>
d950cf9262224a223e2ff5c51393708071e14b94covener #!C:/Perl/bin/perl.exe
e4e60c2f7ba8f12b687f588b89e413842e9f2d76igalic </example>
d950cf9262224a223e2ff5c51393708071e14b94covener
d950cf9262224a223e2ff5c51393708071e14b94covener <p>or, if <code>perl</code> is in the <code>PATH</code>, simply:</p>
d950cf9262224a223e2ff5c51393708071e14b94covener
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor <example>
d950cf9262224a223e2ff5c51393708071e14b94covener #!perl
d950cf9262224a223e2ff5c51393708071e14b94covener </example>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor
d950cf9262224a223e2ff5c51393708071e14b94covener <p>Setting <code>ScriptInterpreterSource Registry</code> will
d950cf9262224a223e2ff5c51393708071e14b94covener cause the Windows Registry tree <code>HKEY_CLASSES_ROOT</code> to be
d950cf9262224a223e2ff5c51393708071e14b94covener searched using the script file extension (e.g., <code>.pl</code>) as a
e4e60c2f7ba8f12b687f588b89e413842e9f2d76igalic search key. The command defined by the registry subkey
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor <code>Shell\ExecCGI\Command</code> or, if it does not exist, by the subkey
d950cf9262224a223e2ff5c51393708071e14b94covener <code>Shell\Open\Command</code> is used to open the script file. If the
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor registry keys cannot be found, Apache falls back to the behavior of the
e4e60c2f7ba8f12b687f588b89e413842e9f2d76igalic <code>Script</code> option.</p>
d950cf9262224a223e2ff5c51393708071e14b94covener
d950cf9262224a223e2ff5c51393708071e14b94covener <note type="warning"><title>Security</title>
d950cf9262224a223e2ff5c51393708071e14b94covener <p>Be careful when using <code>ScriptInterpreterSource
d950cf9262224a223e2ff5c51393708071e14b94covener Registry</code> with <directive
e4e60c2f7ba8f12b687f588b89e413842e9f2d76igalic module="mod_alias">ScriptAlias</directive>'ed directories, because
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor Apache will try to execute <strong>every</strong> file within this
d950cf9262224a223e2ff5c51393708071e14b94covener directory. The <code>Registry</code> setting may cause undesired
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor program calls on files which are typically not executed. For
e4e60c2f7ba8f12b687f588b89e413842e9f2d76igalic example, the default open command on <code>.htm</code> files on
d950cf9262224a223e2ff5c51393708071e14b94covener most Windows systems will execute Microsoft Internet Explorer, so
d950cf9262224a223e2ff5c51393708071e14b94covener any HTTP request for an <code>.htm</code> file existing within the
d950cf9262224a223e2ff5c51393708071e14b94covener script directory would start the browser in the background on the
d950cf9262224a223e2ff5c51393708071e14b94covener server. This is a good way to crash your system within a minute or
d950cf9262224a223e2ff5c51393708071e14b94covener so.</p>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor </note>
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive <p>The option <code>Registry-Strict</code> which is new in Apache
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive 2.0 does the same thing as <code>Registry</code> but uses only the
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive subkey <code>Shell\ExecCGI\Command</code>. The
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive <code>ExecCGI</code> key is not a common one. It must be
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive configured manually in the windows registry and hence prevents
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive accidental program calls on your system.</p>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor</usage>
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive</directivesynopsis>
234c8b28171d7e12b3c1f85b60fabd7c908a9c37slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
dc223428958ad9ff05011545bcdda000887b93e5slive<name>ServerAdmin</name>
beb923bec9bff2b49ce5027df2fe944e2b74e28brederpj<description>Email address that the server includes in error
beb923bec9bff2b49ce5027df2fe944e2b74e28brederpjmessages sent to the client</description>
dc223428958ad9ff05011545bcdda000887b93e5slive<syntax>ServerAdmin <var>email-address</var>|<var>URL</var></syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context><context>virtual host</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess<usage>
fb77c505254b6e9c925e23e734463e87574f8f40kess <p>The <directive>ServerAdmin</directive> sets the contact address
d8c44cd75cf575fe51319280c12445109e878523noodl that the server includes in any error messages it returns to the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive client. If the <code>httpd</code> doesn't recognize the supplied argument
030108b1816bcda3d925df65357feabdce83bc94slive as an URL, it
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor assumes, that it's an <var>email-address</var> and prepends it with
37742b630743e470b94618ecb3560fbd82e50b59rbowen <code>mailto:</code> in hyperlink targets. However, it's recommended to
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd actually use an email address, since there are a lot of CGI scripts that
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd make that assumption. If you want to use an URL, it should point to another
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd server under your control. Otherwise users may not be able to contact you in
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd case of errors.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
fb77c505254b6e9c925e23e734463e87574f8f40kess <p>It may be worth setting up a dedicated address for this, e.g.</p>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <example>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess ServerAdmin www-admin@foo.example.com
37742b630743e470b94618ecb3560fbd82e50b59rbowen </example>
37742b630743e470b94618ecb3560fbd82e50b59rbowen <p>as users do not always mention that they are talking about the
37742b630743e470b94618ecb3560fbd82e50b59rbowen server!</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>ServerAlias</name>
e8811b6d38f756b325446ded5d96857d13856511takashi<description>Alternate names for a host used when matching requests
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cndto name-virtual hosts</description>
130d299c4b2b15be45532a176604c71fdc7bea5bnd<syntax>ServerAlias <var>hostname</var> [<var>hostname</var>] ...</syntax>
130d299c4b2b15be45532a176604c71fdc7bea5bnd<contextlist><context>virtual host</context></contextlist>
130d299c4b2b15be45532a176604c71fdc7bea5bnd
130d299c4b2b15be45532a176604c71fdc7bea5bnd<usage>
ca908c21f63a71c5efa7d32bd2cfafe9a42ba1fbrbowen <p>The <directive>ServerAlias</directive> directive sets the
130d299c4b2b15be45532a176604c71fdc7bea5bnd alternate names for a host, for use with <a
130d299c4b2b15be45532a176604c71fdc7bea5bnd href="/vhosts/name-based.html">name-based virtual hosts</a>.</p>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <example>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd &lt;VirtualHost *&gt;<br />
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd ServerName server.domain.com<br />
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd ServerAlias server server2.domain.com server2<br />
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd # ...<br />
05201775eaa6b363b8a119c8aea5db246b967591yoshiki &lt;/VirtualHost&gt;
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd </example>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd</usage>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<seealso><a href="/vhosts/">Apache Virtual Host documentation</a></seealso>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd</directivesynopsis>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess<directivesynopsis>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<name>ServerName</name>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<description>Hostname and port that the server uses to identify
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnditself</description>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<syntax>ServerName <var>fully-qualified-domain-name</var>[:<var>port</var>]</syntax>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<contextlist><context>server config</context><context>virtual host</context>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd</contextlist>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<compatibility>In version 2.0, this
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd directive supersedes the functionality of the <directive>Port</directive>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd directive from version 1.3.</compatibility>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <p>The <directive>ServerName</directive> directive sets the hostname and
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess port that the server uses to identify itself. This is used when
37742b630743e470b94618ecb3560fbd82e50b59rbowen creating redirection URLs. For example, if the name of the
37742b630743e470b94618ecb3560fbd82e50b59rbowen machine hosting the web server is <code>simple.example.com</code>,
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive but the machine also has the DNS alias <code>www.example.com</code>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive and you wish the web server to be so identified, the following
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive directive should be used:</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive ServerName www.example.com:80
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
8490b2f9f6469d5089163f6dd303d9a81f8e908ctrawick
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>If no <directive>ServerName</directive> is specified, then the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive server attempts to deduce the hostname by performing a reverse
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive lookup on the IP address. If no port is specified in the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <directive>ServerName</directive>, then the server will use the port
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive from the incoming
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess request. For optimal reliability and predictability, you should
6b64034fa2a644ba291c484c0c01c7df5b8d982ckess specify an explicit hostname and port using the
030108b1816bcda3d925df65357feabdce83bc94slive <directive>ServerName</directive> directive.</p>
030108b1816bcda3d925df65357feabdce83bc94slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>If you are using <a
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd href="/vhosts/name-based.html">name-based virtual hosts</a>,
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd the <directive>ServerName</directive> inside a
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <directive type="section" module="core">VirtualHost</directive>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd section specifies what hostname must appear in the request's
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <code>Host:</code> header to match this virtual host.</p>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>See the description of the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <directive module="core">UseCanonicalName</directive> directive for
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess settings which determine whether self-referential URL's (e.g., by the
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <module>mod_dir</module> module) will refer to the
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess specified port, or to the port number given in the client's request.
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><a href="/dns-caveats.html">Issues Regarding DNS and
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive Apache</a></seealso>
7fbd7281d06cec1918aa370214df77c572f871a9sf<seealso><a href="/vhosts/">Apache virtual host
7fbd7281d06cec1918aa370214df77c572f871a9sf documentation</a></seealso>
7fbd7281d06cec1918aa370214df77c572f871a9sf<seealso><directive module="core">UseCanonicalName</directive></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><directive module="core">NameVirtualHost</directive></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><directive module="core">ServerAlias</directive></seealso>
7fbd7281d06cec1918aa370214df77c572f871a9sf</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
7fbd7281d06cec1918aa370214df77c572f871a9sf<directivesynopsis>
7fbd7281d06cec1918aa370214df77c572f871a9sf<name>ServerPath</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Legacy URL pathname for a name-based virtual host that
80c4526970a11f37c0f8e3b82afdf03902dac3f3sliveis accessed by an incompatible browser</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>ServerPath <var>URL-path</var></syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>virtual host</context></contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The <directive>ServerPath</directive> directive sets the legacy
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive URL pathname for a host, for use with <a
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen href="/vhosts/">name-based virtual hosts</a>.</p>
1597043cec6ad37fa4154bf09b0fccdabed1a239slive</usage>
1597043cec6ad37fa4154bf09b0fccdabed1a239slive<seealso><a href="/vhosts/">Apache Virtual Host documentation</a></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
530eba85dbd41b8a0fa5255d3648d1440199a661slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
530eba85dbd41b8a0fa5255d3648d1440199a661slive<name>ServerRoot</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Base directory for the server installation</description>
530eba85dbd41b8a0fa5255d3648d1440199a661slive<syntax>ServerRoot <var>directory-path</var></syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<default>ServerRoot /usr/local/apache</default>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context></contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The <directive>ServerRoot</directive> directive sets the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive directory in which the server lives. Typically it will contain the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive subdirectories <code>conf/</code> and <code>logs/</code>. Relative
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive paths in other configuration directives (such as <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="core">Include</directive> or <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="mod_so">LoadModule</directive>, for example) are taken as
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive relative to this directory.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <example><title>Example</title>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive ServerRoot /home/httpd
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive </example>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><a href="/invoking.html">the <code>-d</code>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive option to <code>httpd</code></a></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><a href="/misc/security_tips.html#serverroot">the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive security tips</a> for information on how to properly set
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive permissions on the <directive>ServerRoot</directive></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>ServerSignature</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Configures the footer on server-generated documents</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>ServerSignature On|Off|EMail</syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<default>ServerSignature Off</default>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context><context>virtual host</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<context>directory</context><context>.htaccess</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<override>All</override>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The <directive>ServerSignature</directive> directive allows the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive configuration of a trailing footer line under server-generated
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive documents (error messages, <module>mod_proxy</module> ftp directory
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive listings, <module>mod_info</module> output, ...). The reason why you
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive would want to enable such a footer line is that in a chain of proxies,
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive the user often has no possibility to tell which of the chained servers
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive actually produced a returned error message.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>The <code>Off</code>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive setting, which is the default, suppresses the footer line (and is
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive therefore compatible with the behavior of Apache-1.2 and
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive below). The <code>On</code> setting simply adds a line with the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive server version number and <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="core">ServerName</directive> of the serving virtual host,
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive and the <code>EMail</code> setting additionally creates a
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive "mailto:" reference to the <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="core">ServerAdmin</directive> of the referenced
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive document.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>After version 2.0.44, the details of the server version number
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive presented are controlled by the <directive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive module="core">ServerTokens</directive> directive.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<seealso><directive module="core">ServerTokens</directive></seealso>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>ServerTokens</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Configures the <code>Server</code> HTTP response
80c4526970a11f37c0f8e3b82afdf03902dac3f3sliveheader</description>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<syntax>ServerTokens Major|Minor|Min[imal]|Prod[uctOnly]|OS|Full</syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<default>ServerTokens Full</default>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context></contextlist>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf<usage>
7fbd7281d06cec1918aa370214df77c572f871a9sf <p>This directive controls whether <code>Server</code> response
7fbd7281d06cec1918aa370214df77c572f871a9sf header field which is sent back to clients includes a
7fbd7281d06cec1918aa370214df77c572f871a9sf description of the generic OS-type of the server as well as
7fbd7281d06cec1918aa370214df77c572f871a9sf information about compiled-in modules.</p>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <dl>
7fbd7281d06cec1918aa370214df77c572f871a9sf <dt><code>ServerTokens Prod[uctOnly]</code></dt>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <dd>Server sends (<em>e.g.</em>): <code>Server:
7fbd7281d06cec1918aa370214df77c572f871a9sf Apache</code></dd>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <dt><code>ServerTokens Major</code></dt>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <dd>Server sends (<em>e.g.</em>): <code>Server:
7fbd7281d06cec1918aa370214df77c572f871a9sf Apache/2</code></dd>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <dt><code>ServerTokens Minor</code></dt>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <dd>Server sends (<em>e.g.</em>): <code>Server:
7fbd7281d06cec1918aa370214df77c572f871a9sf Apache/2.0</code></dd>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <dt><code>ServerTokens Min[imal]</code></dt>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <dd>Server sends (<em>e.g.</em>): <code>Server:
7fbd7281d06cec1918aa370214df77c572f871a9sf Apache/2.0.41</code></dd>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <dt><code>ServerTokens OS</code></dt>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <dd>Server sends (<em>e.g.</em>): <code>Server: Apache/2.0.41
7fbd7281d06cec1918aa370214df77c572f871a9sf (Unix)</code></dd>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <dt><code>ServerTokens Full</code> (or not specified)</dt>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <dd>Server sends (<em>e.g.</em>): <code>Server: Apache/2.0.41
7fbd7281d06cec1918aa370214df77c572f871a9sf (Unix) PHP/4.2.2 MyMod/1.2</code></dd>
7fbd7281d06cec1918aa370214df77c572f871a9sf </dl>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <p>This setting applies to the entire server, and cannot be
7fbd7281d06cec1918aa370214df77c572f871a9sf enabled or disabled on a virtualhost-by-virtualhost basis.</p>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <p>After version 2.0.44, this directive also controls the
7fbd7281d06cec1918aa370214df77c572f871a9sf information presented by the <directive
7fbd7281d06cec1918aa370214df77c572f871a9sf module="core">ServerSignature</directive> directive.</p>
7fbd7281d06cec1918aa370214df77c572f871a9sf</usage>
7fbd7281d06cec1918aa370214df77c572f871a9sf<seealso><directive module="core">ServerSignature</directive></seealso>
7fbd7281d06cec1918aa370214df77c572f871a9sf</directivesynopsis>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf<directivesynopsis>
7fbd7281d06cec1918aa370214df77c572f871a9sf<name>SetHandler</name>
7fbd7281d06cec1918aa370214df77c572f871a9sf<description>Forces all matching files to be processed by a
7fbd7281d06cec1918aa370214df77c572f871a9sfhandler</description>
7fbd7281d06cec1918aa370214df77c572f871a9sf<syntax>SetHandler <var>handler-name</var>|None</syntax>
7fbd7281d06cec1918aa370214df77c572f871a9sf<contextlist><context>server config</context><context>virtual host</context>
7fbd7281d06cec1918aa370214df77c572f871a9sf<context>directory</context><context>.htaccess</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</contextlist>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<override>FileInfo</override>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<compatibility>Moved into the core in Apache 2.0</compatibility>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<usage>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <p>When placed into an <code>.htaccess</code> file or a
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <directive type="section" module="core">Directory</directive> or
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <directive type="section" module="core">Location</directive>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive section, this directive forces all matching files to be parsed
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive through the <a href="/handler.html">handler</a> given by
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen <var>handler-name</var>. For example, if you had a directory you
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen wanted to be parsed entirely as imagemap rule files, regardless
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen of extension, you might put the following into an
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <code>.htaccess</code> file in that directory:</p>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <example>
8b052d682204371decc64f942aede5ef1da98955erikabele SetHandler imap-file
8b052d682204371decc64f942aede5ef1da98955erikabele </example>
8b052d682204371decc64f942aede5ef1da98955erikabele
8b052d682204371decc64f942aede5ef1da98955erikabele <p>Another example: if you wanted to have the server display a
8b052d682204371decc64f942aede5ef1da98955erikabele status report whenever a URL of
8b052d682204371decc64f942aede5ef1da98955erikabele <code>http://servername/status</code> was called, you might put
8b052d682204371decc64f942aede5ef1da98955erikabele the following into <code>httpd.conf</code>:</p>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <example>
7fbd7281d06cec1918aa370214df77c572f871a9sf &lt;Location /status&gt;<br />
7fbd7281d06cec1918aa370214df77c572f871a9sf <indent>
7fbd7281d06cec1918aa370214df77c572f871a9sf SetHandler server-status<br />
fd410ae1fa431e734e6d0cd3c006002d4904466apoirier </indent>
7fbd7281d06cec1918aa370214df77c572f871a9sf &lt;/Location&gt;
7fbd7281d06cec1918aa370214df77c572f871a9sf </example>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf <p>You can override an earlier defined <directive>SetHandler</directive>
7fbd7281d06cec1918aa370214df77c572f871a9sf directive by using the value <code>None</code>.</p>
7fbd7281d06cec1918aa370214df77c572f871a9sf</usage>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf<seealso><directive module="mod_mime">AddHandler</directive></seealso>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf</directivesynopsis>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf<directivesynopsis>
7fbd7281d06cec1918aa370214df77c572f871a9sf<name>SetInputFilter</name>
7fbd7281d06cec1918aa370214df77c572f871a9sf<description>Sets the filters that will process client requests and POST
7fbd7281d06cec1918aa370214df77c572f871a9sfinput</description>
7fbd7281d06cec1918aa370214df77c572f871a9sf<syntax>SetInputFilter <var>filter</var>[;<var>filter</var>...]</syntax>
7fbd7281d06cec1918aa370214df77c572f871a9sf<contextlist><context>server config</context><context>virtual host</context>
7fbd7281d06cec1918aa370214df77c572f871a9sf<context>directory</context><context>.htaccess</context>
7fbd7281d06cec1918aa370214df77c572f871a9sf</contextlist>
7fbd7281d06cec1918aa370214df77c572f871a9sf<override>FileInfo</override>
7fbd7281d06cec1918aa370214df77c572f871a9sf
7fbd7281d06cec1918aa370214df77c572f871a9sf<usage>
7fbd7281d06cec1918aa370214df77c572f871a9sf <p>The <directive>SetInputFilter</directive> directive sets the
7fbd7281d06cec1918aa370214df77c572f871a9sf filter or filters which will process client requests and POST
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive input when they are received by the server. This is in addition to
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive any filters defined elsewhere, including the
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <directive module="mod_mime">AddInputFilter</directive>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive directive.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
313bb560bc5c323cfd40c9cad7335b4b8e060aedkess <p>If more than one filter is specified, they must be separated
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive by semicolons in the order in which they should process the
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd content.</p>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive</usage>
18b4b0fd6056093002ddef488636bf5ebe415ef0erikabele<seealso><a href="/filter.html">Filters</a> documentation</seealso>
18b4b0fd6056093002ddef488636bf5ebe415ef0erikabele</directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<directivesynopsis>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<name>SetOutputFilter</name>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<description>Sets the filters that will process responses from the
80c4526970a11f37c0f8e3b82afdf03902dac3f3sliveserver</description>
fb77c505254b6e9c925e23e734463e87574f8f40kess<syntax>SetOutputFilter <var>filter</var>[;<var>filter</var>...]</syntax>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<contextlist><context>server config</context><context>virtual host</context>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive<context>directory</context><context>.htaccess</context>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen</contextlist>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen<override>FileInfo</override>
d3f27ec18dfa6283e852aa98253212edafaa0e2brbowen
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd<usage>
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd <p>The <directive>SetOutputFilter</directive> directive sets the filters
a7f40ca49262952d6dd69d021cf5b0c2b452ae4cnd which will process responses from the server before they are
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive sent to the client. This is in addition to any filters defined
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive elsewhere, including the
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <directive module="mod_mime">AddOutputFilter</directive>
6beba165aeced2ca77a6f1593ee08c47a32099efcovener directive.</p>
6beba165aeced2ca77a6f1593ee08c47a32099efcovener
6beba165aeced2ca77a6f1593ee08c47a32099efcovener <p>For example, the following configuration will process all files
6beba165aeced2ca77a6f1593ee08c47a32099efcovener in the <code>/www/data/</code> directory for server-side
7a975d0413ba303546b7619e4785cb641f7f09fdcovener includes.</p>
6beba165aeced2ca77a6f1593ee08c47a32099efcovener
6beba165aeced2ca77a6f1593ee08c47a32099efcovener <example>
6beba165aeced2ca77a6f1593ee08c47a32099efcovener &lt;Directory /www/data/&gt;<br />
6beba165aeced2ca77a6f1593ee08c47a32099efcovener <indent>
6beba165aeced2ca77a6f1593ee08c47a32099efcovener SetOutputFilter INCLUDES<br />
6beba165aeced2ca77a6f1593ee08c47a32099efcovener </indent>
6beba165aeced2ca77a6f1593ee08c47a32099efcovener &lt;/Directory&gt;
6beba165aeced2ca77a6f1593ee08c47a32099efcovener </example>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <p>If more than one filter is specified, they must be separated
6beba165aeced2ca77a6f1593ee08c47a32099efcovener by semicolons in the order in which they should process the
7a975d0413ba303546b7619e4785cb641f7f09fdcovener content.</p>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim</usage>
7a975d0413ba303546b7619e4785cb641f7f09fdcovener<seealso><a href="/filter.html">Filters</a> documentation</seealso>
7a975d0413ba303546b7619e4785cb641f7f09fdcovener</directivesynopsis>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
7a975d0413ba303546b7619e4785cb641f7f09fdcovener<directivesynopsis>
7a975d0413ba303546b7619e4785cb641f7f09fdcovener<name>TimeOut</name>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim<description>Amount of time the server will wait for
7a975d0413ba303546b7619e4785cb641f7f09fdcovenercertain events before failing a request</description>
7a975d0413ba303546b7619e4785cb641f7f09fdcovener<syntax>TimeOut <var>seconds</var></syntax>
7a975d0413ba303546b7619e4785cb641f7f09fdcovener<default>TimeOut 300</default>
7a975d0413ba303546b7619e4785cb641f7f09fdcovener<contextlist><context>server config</context></contextlist>
7a975d0413ba303546b7619e4785cb641f7f09fdcovener
7a975d0413ba303546b7619e4785cb641f7f09fdcovener<usage>
7a975d0413ba303546b7619e4785cb641f7f09fdcovener <p>The <directive>TimeOut</directive> directive currently defines
7a975d0413ba303546b7619e4785cb641f7f09fdcovener the amount of time Apache will wait for three things:</p>
6beba165aeced2ca77a6f1593ee08c47a32099efcovener
6beba165aeced2ca77a6f1593ee08c47a32099efcovener <ol>
80c4526970a11f37c0f8e3b82afdf03902dac3f3slive <li>The total amount of time it takes to receive a GET
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim request.</li>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <li>The amount of time between receipt of TCP packets on a
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim POST or PUT request.</li>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <li>The amount of time between ACKs on transmissions of TCP
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim packets in responses.</li>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim </ol>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <p>We plan on making these separately configurable at some point
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim down the road. The timer used to default to 1200 before 1.2,
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim but has been lowered to 300 which is still far more than
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim necessary in most situations. It is not set any lower by
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim default because there may still be odd places in the code where
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim the timer is not reset when a packet is sent. </p>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim</usage>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim</directivesynopsis>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim<directivesynopsis>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim<name>UseCanonicalName</name>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim<description>Configures how the server determines its own name and
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjimport</description>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim<syntax>UseCanonicalName On|Off|DNS</syntax>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim<default>UseCanonicalName On</default>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim<contextlist><context>server config</context><context>virtual host</context>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim<context>directory</context></contextlist>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim<usage>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <p>In many situations Apache must construct a <em>self-referential</em>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim URL -- that is, a URL that refers back to the same server. With
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <code>UseCanonicalName On</code> Apache will use the hostname and port
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim specified in the <directive module="core">ServerName</directive>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim directive to construct the canonical name for the server. This name
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim is used in all self-referential URLs, and for the values of
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <code>SERVER_NAME</code> and <code>SERVER_PORT</code> in CGIs.</p>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <p>With <code>UseCanonicalName Off</code> Apache will form
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim self-referential URLs using the hostname and port supplied by
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim the client if any are supplied (otherwise it will use the
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim canonical name, as defined above). These values are the same
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim that are used to implement <a
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim href="/vhosts/name-based.html">name based virtual hosts</a>,
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim and are available with the same clients. The CGI variables
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <code>SERVER_NAME</code> and <code>SERVER_PORT</code> will be
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim constructed from the client supplied values as well.</p>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <p>An example where this may be useful is on an intranet server
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim where you have users connecting to the machine using short
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim names such as <code>www</code>. You'll notice that if the users
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim type a shortname, and a URL which is a directory, such as
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <code>http://www/splat</code>, <em>without the trailing
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim slash</em> then Apache will redirect them to
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <code>http://www.domain.com/splat/</code>. If you have
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim authentication enabled, this will cause the user to have to
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim authenticate twice (once for <code>www</code> and once again
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim for <code>www.domain.com</code> -- see <a
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim href="http://httpd.apache.org/docs/misc/FAQ.html#prompted-twice">the
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim FAQ on this subject for more information</a>). But if
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <directive>UseCanonicalName</directive> is set <code>Off</code>, then
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim Apache will redirect to <code>http://www/splat/</code>.</p>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <p>There is a third option, <code>UseCanonicalName DNS</code>,
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim which is intended for use with mass IP-based virtual hosting to
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim support ancient clients that do not provide a
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <code>Host:</code> header. With this option Apache does a
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim reverse DNS lookup on the server IP address that the client
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim connected to in order to work out self-referential URLs.</p>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <note type="warning"><title>Warning</title>
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim <p>If CGIs make assumptions about the values of <code>SERVER_NAME</code>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick they may be broken by this option. The client is essentially free
a0fed3e26656887c8458aa1081d516d08ced3c84trawick to give whatever value they want as a hostname. But if the CGI is
a0fed3e26656887c8458aa1081d516d08ced3c84trawick only using <code>SERVER_NAME</code> to construct self-referential URLs
a0fed3e26656887c8458aa1081d516d08ced3c84trawick then it should be just fine.</p>
2b6c7b8eb5fbc43564898aedac730df7e91da475trawick </note>
2b6c7b8eb5fbc43564898aedac730df7e91da475trawick</usage>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick<seealso><directive module="core">ServerName</directive></seealso>
88d86cfadffe2275a3dfb67a4d7bdc018630b661rbowen<seealso><directive module="mpm_common">Listen</directive></seealso>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick</directivesynopsis>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick
a0fed3e26656887c8458aa1081d516d08ced3c84trawick<directivesynopsis type="section">
a0fed3e26656887c8458aa1081d516d08ced3c84trawick<name>VirtualHost</name>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick<description>Contains directives that apply only to a specific
a0fed3e26656887c8458aa1081d516d08ced3c84trawickhostname or IP address</description>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick<syntax>&lt;VirtualHost
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <var>addr</var>[:<var>port</var>] [<var>addr</var>[:<var>port</var>]]
a0fed3e26656887c8458aa1081d516d08ced3c84trawick ...&gt; ... &lt;/VirtualHost&gt;</syntax>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick<contextlist><context>server config</context></contextlist>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick
a0fed3e26656887c8458aa1081d516d08ced3c84trawick<usage>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <p><directive type="section">VirtualHost</directive> and
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <code>&lt;/VirtualHost&gt;</code> are used to enclose a group of
a0fed3e26656887c8458aa1081d516d08ced3c84trawick directives that will apply only to a particular virtual host. Any
a0fed3e26656887c8458aa1081d516d08ced3c84trawick directive that is allowed in a virtual host context may be
a0fed3e26656887c8458aa1081d516d08ced3c84trawick used. When the server receives a request for a document on a
a0fed3e26656887c8458aa1081d516d08ced3c84trawick particular virtual host, it uses the configuration directives
a0fed3e26656887c8458aa1081d516d08ced3c84trawick enclosed in the <directive type="section">VirtualHost</directive>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick section. <var>Addr</var> can be:</p>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <ul>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <li>The IP address of the virtual host;</li>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <li>A fully qualified domain name for the IP address of the
a0fed3e26656887c8458aa1081d516d08ced3c84trawick virtual host;</li>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <li>The character <code>*</code>, which is used only in combination with
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <code>NameVirtualHost *</code> to match all IP addresses; or</li>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <li>The string <code>_default_</code>, which is used only
a0fed3e26656887c8458aa1081d516d08ced3c84trawick with IP virtual hosting to catch unmatched IP addresses.</li>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick </ul>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <example><title>Example</title>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor &lt;VirtualHost 10.1.2.3&gt;<br />
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <indent>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick ServerAdmin webmaster@host.foo.com<br />
a0fed3e26656887c8458aa1081d516d08ced3c84trawick DocumentRoot /www/docs/host.foo.com<br />
a0fed3e26656887c8458aa1081d516d08ced3c84trawick ServerName host.foo.com<br />
a0fed3e26656887c8458aa1081d516d08ced3c84trawick ErrorLog logs/host.foo.com-error_log<br />
a0fed3e26656887c8458aa1081d516d08ced3c84trawick TransferLog logs/host.foo.com-access_log<br />
a0fed3e26656887c8458aa1081d516d08ced3c84trawick </indent>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick &lt;/VirtualHost&gt;
bf0e7f6393e91c0a7c15cb0d889a4238c973dc2etrawick </example>
bf0e7f6393e91c0a7c15cb0d889a4238c973dc2etrawick
bf0e7f6393e91c0a7c15cb0d889a4238c973dc2etrawick
bf0e7f6393e91c0a7c15cb0d889a4238c973dc2etrawick <p>IPv6 addresses must be specified in square brackets because
bf0e7f6393e91c0a7c15cb0d889a4238c973dc2etrawick the optional port number could not be determined otherwise. An
bf0e7f6393e91c0a7c15cb0d889a4238c973dc2etrawick IPv6 example is shown below:</p>
bf0e7f6393e91c0a7c15cb0d889a4238c973dc2etrawick
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <example>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick &lt;VirtualHost [fe80::a00:20ff:fea7:ccea]&gt;<br />
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <indent>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick ServerAdmin webmaster@host.example.com<br />
a0fed3e26656887c8458aa1081d516d08ced3c84trawick DocumentRoot /www/docs/host.example.com<br />
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor ServerName host.example.com<br />
a0fed3e26656887c8458aa1081d516d08ced3c84trawick ErrorLog logs/host.example.com-error_log<br />
a0fed3e26656887c8458aa1081d516d08ced3c84trawick TransferLog logs/host.example.com-access_log<br />
bf0e7f6393e91c0a7c15cb0d889a4238c973dc2etrawick </indent>
bf0e7f6393e91c0a7c15cb0d889a4238c973dc2etrawick &lt;/VirtualHost&gt;
bf0e7f6393e91c0a7c15cb0d889a4238c973dc2etrawick </example>
bf0e7f6393e91c0a7c15cb0d889a4238c973dc2etrawick
bf0e7f6393e91c0a7c15cb0d889a4238c973dc2etrawick <p>Each Virtual Host must correspond to a different IP address,
bf0e7f6393e91c0a7c15cb0d889a4238c973dc2etrawick different port number or a different host name for the server,
bf0e7f6393e91c0a7c15cb0d889a4238c973dc2etrawick in the former case the server machine must be configured to
a0fed3e26656887c8458aa1081d516d08ced3c84trawick accept IP packets for multiple addresses. (If the machine does
a0fed3e26656887c8458aa1081d516d08ced3c84trawick not have multiple network interfaces, then this can be
a0fed3e26656887c8458aa1081d516d08ced3c84trawick accomplished with the <code>ifconfig alias</code> command -- if
a0fed3e26656887c8458aa1081d516d08ced3c84trawick your OS supports it).</p>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <note><title>Note</title>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <p>The use of <directive type="section">VirtualHost</directive> does
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <strong>not</strong> affect what addresses Apache listens on. You
a0fed3e26656887c8458aa1081d516d08ced3c84trawick may need to ensure that Apache is listening on the correct addresses
a0fed3e26656887c8458aa1081d516d08ced3c84trawick using <directive module="mpm_common">Listen</directive>.</p>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick </note>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <p>When using IP-based virtual hosting, the special name
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <code>_default_</code> can be specified in
a0fed3e26656887c8458aa1081d516d08ced3c84trawick which case this virtual host will match any IP address that is
a0fed3e26656887c8458aa1081d516d08ced3c84trawick not explicitly listed in another virtual host. In the absence
a0fed3e26656887c8458aa1081d516d08ced3c84trawick of any <code>_default_</code> virtual host the "main" server config,
a0fed3e26656887c8458aa1081d516d08ced3c84trawick consisting of all those definitions outside any VirtualHost
a0fed3e26656887c8458aa1081d516d08ced3c84trawick section, is used when no IP-match occurs. (But note that any IP
a0fed3e26656887c8458aa1081d516d08ced3c84trawick address that matches a <directive
a0fed3e26656887c8458aa1081d516d08ced3c84trawick module="core">NameVirtualHost</directive> directive will use neither
a0fed3e26656887c8458aa1081d516d08ced3c84trawick the "main" server config nor the <code>_default_</code> virtual host.
a0fed3e26656887c8458aa1081d516d08ced3c84trawick See the <a href="/vhosts/name-based.html">name-based virtual hosting</a>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick documentation for further details.)</p>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor <p>You can specify a <code>:port</code> to change the port that is
a0fed3e26656887c8458aa1081d516d08ced3c84trawick matched. If unspecified then it defaults to the same port as the
a0fed3e26656887c8458aa1081d516d08ced3c84trawick most recent <directive module="mpm_common">Listen</directive>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick statement of the main server. You may also specify <code>:*</code>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick to match all ports on that address. (This is recommended when used
a0fed3e26656887c8458aa1081d516d08ced3c84trawick with <code>_default_</code>.)</p>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <note type="warning"><title>Security</title>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick <p>See the <a href="/misc/security_tips.html">security tips</a>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick document for details on why your security could be compromised if the
a0fed3e26656887c8458aa1081d516d08ced3c84trawick directory where log files are stored is writable by anyone other
a0fed3e26656887c8458aa1081d516d08ced3c84trawick than the user that starts the server.</p>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick </note>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick</usage>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick<seealso><a href="/vhosts/">Apache Virtual Host documentation</a></seealso>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick<seealso><a href="/dns-caveats.html">Issues Regarding DNS and
a0fed3e26656887c8458aa1081d516d08ced3c84trawick Apache</a></seealso>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick<seealso><a href="/bind.html">Setting
a0fed3e26656887c8458aa1081d516d08ced3c84trawick which addresses and ports Apache uses</a></seealso>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick<seealso><a href="/sections.html">How &lt;Directory&gt;, &lt;Location&gt;
a0fed3e26656887c8458aa1081d516d08ced3c84trawick and &lt;Files&gt; sections work</a> for an explanation of how these
a0fed3e26656887c8458aa1081d516d08ced3c84trawick different sections are combined when a request is received</seealso>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor</directivesynopsis>
a0fed3e26656887c8458aa1081d516d08ced3c84trawick
215694531f7d868b906df96e22a80e6a1d2326a6lgentis</modulesynopsis>
031bbbc0d1189b07330e38d0c126820a9ab7795egryzor