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