]> granicus.if.org Git - apache/blobdiff - docs/manual/mod/core.xml
Changing the default Options from All to FollowSymlinks.
[apache] / docs / manual / mod / core.xml
index 17573dee423279360a7ca50ca16ccf75250a034f..f3328d8009b5977537c338eca9b0ab5ec13d88c1 100644 (file)
@@ -32,35 +32,41 @@ available</description>
 <description>Configures optimizations for a Protocol's Listener Sockets</description>
 <syntax>AcceptFilter <var>protocol</var> <var>accept_filter</var></syntax>
 <contextlist><context>server config</context></contextlist>
-<compatibility>Available in Apache 2.1.5 and later.
-On Windows from Apache 2.3.3 and later.</compatibility>
+<compatibility>Available in Apache httpd 2.1.5 and later.
+On Windows from Apache httpd 2.3.3 and later.</compatibility>
 
 <usage>
-    <p>This directive enables operating system specific optimizations for a 
-       listening socket by the Protocol type. The basic premise is for the 
-       kernel to not send a socket to the server process until either data 
-       is received or an entire HTTP Request is buffered. Only
-       <a href="http://www.freebsd.org/cgi/man.cgi?query=accept_filter&amp;sektion=9">
-       FreeBSD's Accept Filters</a>, Linux's more primitive 
+    <p>This directive enables operating system specific optimizations for a
+       listening socket by the <directive>Protocol</directive>type.
+       The basic premise is for the kernel to not send a socket to the server
+       process until either data is received or an entire HTTP Request is buffered.
+       Only <a href="http://www.freebsd.org/cgi/man.cgi?query=accept_filter&amp;sektion=9">
+       FreeBSD's Accept Filters</a>, Linux's more primitive
        <code>TCP_DEFER_ACCEPT</code>, and Windows' optimized AcceptEx()
        are currently supported.</p>
 
-    <p>Using <code>none</code> for an argument will disable any accept filters 
+    <p>Using <code>none</code> for an argument will disable any accept filters
        for that protocol.  This is useful for protocols that require a server
        send data first, such as <code>ftp:</code> or <code>nntp</code>:</p>
     <example>AcceptFilter nntp none</example>
 
+    <p>The default protocol names are <code>https</code> for port 443
+       and <code>http</code> for all other ports.  To specify another protocol
+       is being used with a listening port, add the <var>protocol</var>
+       argument to the <directive module="mpm_common">Listen</directive>
+       directive.</p>
+
     <p>The default values on FreeBSD are:</p>
     <example>
         AcceptFilter http httpready <br/>
         AcceptFilter https dataready
     </example>
-    
+
     <p>The <code>httpready</code> accept filter buffers entire HTTP requests at
-       the kernel level.  Once an entire request is received, the kernel then 
-       sends it to the server. See the 
+       the kernel level.  Once an entire request is received, the kernel then
+       sends it to the server. See the
        <a href="http://www.freebsd.org/cgi/man.cgi?query=accf_http&amp;sektion=9">
-       accf_http(9)</a> man page for more details.  Since HTTPS requests are 
+       accf_http(9)</a> man page for more details.  Since HTTPS requests are
        encrypted only the <a href="http://www.freebsd.org/cgi/man.cgi?query=accf_data&amp;sektion=9">
        accf_data(9)</a> filter is used.</p>
 
@@ -71,9 +77,9 @@ On Windows from Apache 2.3.3 and later.</compatibility>
     </example>
 
     <p>Linux's <code>TCP_DEFER_ACCEPT</code> does not support buffering http
-       requests.  Any value besides <code>none</code> will enable 
+       requests.  Any value besides <code>none</code> will enable
        <code>TCP_DEFER_ACCEPT</code> on that listener. For more details
-       see the Linux 
+       see the Linux
        <a href="http://homepages.cwi.nl/~aeb/linux/man2html/man7/tcp.7.html">
        tcp(7)</a> man page.</p>
 
@@ -94,13 +100,14 @@ On Windows from Apache 2.3.3 and later.</compatibility>
        the <code>connect</code> option does not wait for the initial data
        transmission.</p>
 
-    <p>On Windows, <code>none</code> uses accept() rather than than AcceptEx()
+    <p>On Windows, <code>none</code> uses accept() rather than AcceptEx()
        and will not recycle sockets between connections.  This is useful for
        network adapters with broken driver support, as well as some virtual
        network providers such as vpn drivers, or spam, virus or spyware
-       filters.</p>  
+       filters.</p>
 
 </usage>
+<seealso><directive>Protocol</directive></seealso>
 </directivesynopsis>
 
 <directivesynopsis>
@@ -112,7 +119,7 @@ On Windows from Apache 2.3.3 and later.</compatibility>
 <context>virtual host</context><context>directory</context>
 <context>.htaccess</context></contextlist>
 <override>FileInfo</override>
-<compatibility>Available in Apache 2.0.30 and later</compatibility>
+<compatibility>Available in Apache httpd 2.0.30 and later</compatibility>
 
 <usage>
 
@@ -258,71 +265,6 @@ content-type is <code>text/plain</code> or <code>text/html</code></description>
 <seealso><directive module="mod_mime">AddCharset</directive></seealso>
 </directivesynopsis>
 
-<directivesynopsis>
-<name>AddOutputFilterByType</name>
-<description>assigns an output filter to a particular media-type</description>
-<syntax>AddOutputFilterByType <var>filter</var>[;<var>filter</var>...]
-<var>media-type</var> [<var>media-type</var>] ...</syntax>
-<contextlist><context>server config</context>
-<context>virtual host</context><context>directory</context>
-<context>.htaccess</context></contextlist>
-<override>FileInfo</override>
-<compatibility>Available in Apache 2.0.33 and later; deprecated in Apache 2.1 and later</compatibility>
-
-<usage>
-    <p>This directive activates a particular output <a
-    href="../filter.html">filter</a> for a request depending on the
-    response <glossary>media-type</glossary>.  Because of certain
-    problems discussed below, this directive is deprecated.  The same
-    functionality is available using <module>mod_filter</module>.</p>
-
-    <p>The following example uses the <code>DEFLATE</code> filter, which
-    is provided by <module>mod_deflate</module>. It will compress all
-    output (either static or dynamic) which is labeled as
-    <code>text/html</code> or <code>text/plain</code> before it is sent
-    to the client.</p>
-
-    <example>
-      AddOutputFilterByType DEFLATE text/html text/plain
-    </example>
-
-    <p>If you want the content to be processed by more than one filter, their
-    names have to be separated by semicolons. It's also possible to use one
-    <directive>AddOutputFilterByType</directive> directive for each of
-    these filters.</p>
-
-    <p>The configuration below causes all script output labeled as
-    <code>text/html</code> to be processed at first by the
-    <code>INCLUDES</code> filter and then by the <code>DEFLATE</code>
-    filter.</p>
-
-    <example>
-    &lt;Location /cgi-bin/&gt;<br />
-    <indent>
-      Options Includes<br />
-      AddOutputFilterByType INCLUDES;DEFLATE text/html<br />
-    </indent>
-    &lt;/Location&gt;
-    </example>
-
-    <note type="warning"><title>Note</title>
-      <p>Enabling filters with <directive>AddOutputFilterByType</directive>
-      may fail partially or completely in some cases. For example, no
-      filters are applied if the <glossary>media-type</glossary> could not
-      be determined.  If you want to make sure that the filters will be
-      applied, assign the content type to a resource explicitly; for
-      example, with <directive module="mod_mime">AddType</directive> or
-      <directive module="core">ForceType</directive>. Setting the
-      content type within a (non-nph) CGI script is also safe.</p>
-
-    </note>
-</usage>
-
-<seealso><directive module="mod_mime">AddOutputFilter</directive></seealso>
-<seealso><directive module="core">SetOutputFilter</directive></seealso>
-<seealso><a href="../filter.html">filters</a></seealso>
-</directivesynopsis>
-
 <directivesynopsis>
 <name>AllowEncodedSlashes</name>
 <description>Determines whether encoded path separators in URLs are allowed to
@@ -331,7 +273,7 @@ be passed through</description>
 <default>AllowEncodedSlashes Off</default>
 <contextlist><context>server config</context><context>virtual host</context>
 </contextlist>
-<compatibility>Available in Apache 2.0.46 and later</compatibility>
+<compatibility>Available in Apache httpd 2.0.46 and later</compatibility>
 
 <usage>
     <p>The <directive>AllowEncodedSlashes</directive> directive allows URLs
@@ -358,7 +300,7 @@ be passed through</description>
 <code>.htaccess</code> files</description>
 <syntax>AllowOverride All|None|<var>directive-type</var>
 [<var>directive-type</var>] ...</syntax>
-<default>AllowOverride All</default>
+<default>AllowOverride None (2.3.9 and later), AllowOverride All (2.3.8 and earlier)</default>
 <contextlist><context>directory</context></contextlist>
 
 <usage>
@@ -483,7 +425,7 @@ be passed through</description>
     server error.</p>
 
     <note><p>For security and performance reasons, do not set
-    <code>AllowOverride</code> to anything other than <code>None</code> 
+    <code>AllowOverride</code> to anything other than <code>None</code>
     in your <code>&lt;Directory /&gt;</code> block. Instead, find (or
     create) the <code>&lt;Directory&gt;</code> block that refers to the
     directory where you're actually planning to place a
@@ -507,7 +449,7 @@ scripts</description>
 <compatibility>NetWare only</compatibility>
 
 <usage>
-    <p>This directive is used to control how Apache finds the
+    <p>This directive is used to control how Apache httpd finds the
     interpreter used to run CGI scripts. For example, setting
     <code>CGIMapExtension sys:\foo.nlm .foo</code> will
     cause all CGI script files with a <code>.foo</code> extension to
@@ -570,7 +512,7 @@ which no other media type configuration could be found.
 <context>directory</context><context>.htaccess</context>
 </contextlist>
 <override>FileInfo</override>
-<compatibility>The argument <code>none</code> is available in Apache 2.2.7 and later.  All other choices are DISABLED for 2.3.x and later.</compatibility>
+<compatibility>The argument <code>none</code> is available in Apache httpd 2.2.7 and later.  All other choices are DISABLED for 2.3.x and later.</compatibility>
 
 <usage>
     <p>This directive has been disabled.  For backwards compatibility
@@ -612,7 +554,7 @@ which no other media type configuration could be found.
 <directivesynopsis type="section">
 <name>Directory</name>
 <description>Enclose a group of directives that apply only to the
-named file-system directory and sub-directories</description>
+named file-system directory, sub-directories, and their contents.</description>
 <syntax>&lt;Directory <var>directory-path</var>&gt;
 ... &lt;/Directory&gt;</syntax>
 <contextlist><context>server config</context><context>virtual host</context>
@@ -621,8 +563,9 @@ named file-system directory and sub-directories</description>
 <usage>
     <p><directive type="section">Directory</directive> and
     <code>&lt;/Directory&gt;</code> are used to enclose a group of
-    directives that will apply only to the named directory and
-    sub-directories of that directory. Any directive that is allowed
+    directives that will apply only to the named directory,
+    sub-directories of that directory, and the files within the respective
+    directories.  Any directive that is allowed
     in a directory context may be used. <var>Directory-path</var> is
     either the full path to a directory, or a wild-card string using
     Unix shell-style matching. In a wild-card string, <code>?</code> matches
@@ -643,7 +586,7 @@ named file-system directory and sub-directories</description>
 
     <note>
       <p>Be careful with the <var>directory-path</var> arguments:
-      They have to literally match the filesystem path which Apache uses
+      They have to literally match the filesystem path which Apache httpd uses
       to access the files. Directives applied to a particular
       <code>&lt;Directory&gt;</code> will not apply to files accessed from
       that same directory via a different path, such as via different symbolic
@@ -718,9 +661,9 @@ named file-system directory and sub-directories</description>
     the corresponding <directive type="section">Directory</directive> will
     be applied.</p>
 
-   <p><strong>Note that the default Apache access for
+   <p><strong>Note that the default access for
     <code>&lt;Directory /&gt;</code> is <code>Allow from All</code>.
-    This means that Apache will serve any file mapped from an URL. It is
+    This means that Apache httpd will serve any file mapped from an URL. It is
     recommended that you change this with a block such
     as</strong></p>
 
@@ -753,8 +696,7 @@ named file-system directory and sub-directories</description>
 <directivesynopsis type="section">
 <name>DirectoryMatch</name>
 <description>Enclose directives that apply to
-file-system directories matching a regular expression and their
-subdirectories</description>
+the contents of file-system directories matching a regular expression.</description>
 <syntax>&lt;DirectoryMatch <var>regex</var>&gt;
 ... &lt;/DirectoryMatch&gt;</syntax>
 <contextlist><context>server config</context><context>virtual host</context>
@@ -763,11 +705,10 @@ subdirectories</description>
 <usage>
     <p><directive type="section">DirectoryMatch</directive> and
     <code>&lt;/DirectoryMatch&gt;</code> are used to enclose a group
-    of directives which will apply only to the named directory and
-    sub-directories of that directory, the same as <directive
-    module="core" type="section">Directory</directive>. However, it
-    takes as an argument a <glossary ref="regex">regular 
-    expression</glossary>. For example:</p>
+    of directives which will apply only to the named directory (and the files within),
+    the same as <directive module="core" type="section">Directory</directive>.
+    However, it takes as an argument a
+    <glossary ref="regex">regular expression</glossary>.  For example:</p>
 
     <example>
       &lt;DirectoryMatch "^/www/(.+/)?[0-9]{3}"&gt;
@@ -775,6 +716,20 @@ subdirectories</description>
 
     <p>would match directories in <code>/www/</code> that consisted of three
     numbers.</p>
+
+   <note><title>Compatability</title>
+      Prior to 2.3.9, this directive implicitly applied to sub-directories
+      (like <directive module="core" type="section">Directory</directive>) and
+      could not match the end of line symbol ($).  In 2.3.9 and later,
+      only directories that match the expression are affected by the enclosed
+      directives.
+    </note>
+
+    <note><title>Trailing Slash</title>
+      This directive applies to requests for directories that may or may
+      not end in a trailing slash, so expressions that are anchored to the
+      end of line ($) must be written with care.
+    </note>
 </usage>
 <seealso><directive type="section" module="core">Directory</directive> for
 a description of how regular expressions are mixed in with normal
@@ -806,9 +761,9 @@ from the web</description>
     </example>
 
     <p>then an access to
-    <code>http://www.my.host.com/index.html</code> refers to
-    <code>/usr/web/index.html</code>. If the <var>directory-path</var> is 
-    not absolute then it is assumed to be relative to the <directive 
+    <code>http://my.example.com/index.html</code> refers to
+    <code>/usr/web/index.html</code>. If the <var>directory-path</var> is
+    not absolute then it is assumed to be relative to the <directive
     module="core">ServerRoot</directive>.</p>
 
     <p>The <directive>DocumentRoot</directive> should be specified without
@@ -833,7 +788,7 @@ Locations</a></seealso>
     memory-mapping if it needs to read the contents of a file during
     delivery.  By default, when the handling of a request requires
     access to the data within a file -- for example, when delivering a
-    server-parsed file using <module>mod_include</module> -- Apache
+    server-parsed file using <module>mod_include</module> -- Apache httpd
     memory-maps the file if the OS supports it.</p>
 
     <p>This memory-mapping sometimes yields a performance improvement.
@@ -873,19 +828,20 @@ Locations</a></seealso>
 <name>EnableSendfile</name>
 <description>Use the kernel sendfile support to deliver files to the client</description>
 <syntax>EnableSendfile On|Off</syntax>
-<default>EnableSendfile On</default>
+<default>EnableSendfile Off</default>
 <contextlist><context>server config</context><context>virtual host</context>
 <context>directory</context><context>.htaccess</context>
 </contextlist>
 <override>FileInfo</override>
-<compatibility>Available in version 2.0.44 and later</compatibility>
+<compatibility>Available in version 2.0.44 and later. Default changed to Off in
+version 2.3.9.</compatibility>
 
 <usage>
     <p>This directive controls whether <program>httpd</program> may use the
     sendfile support from the kernel to transmit file contents to the client.
     By default, when the handling of a request requires no access
     to the data within a file -- for example, when delivering a
-    static file -- Apache uses sendfile to deliver the file contents
+    static file -- Apache httpd uses sendfile to deliver the file contents
     without ever reading the file if the OS supports it.</p>
 
     <p>This sendfile mechanism avoids separate read and send operations,
@@ -903,19 +859,19 @@ Locations</a></seealso>
     <li>On Linux on Itanium, sendfile may be unable to handle files
     over 2GB in size.</li>
     <li>With a network-mounted <directive
-    module="core">DocumentRoot</directive> (e.g., NFS or SMB),
+    module="core">DocumentRoot</directive> (e.g., NFS, SMB, CIFS, FUSE),
     the kernel may be unable to serve the network file through
     its own cache.</li>
     </ul>
 
-    <p>For server configurations that are vulnerable to these problems,
-    you should disable this feature by specifying:</p>
+    <p>For server configurations that are not vulnerable to these problems,
+    you may enable this feature by specifying:</p>
 
     <example>
-      EnableSendfile Off
+      EnableSendfile On
     </example>
 
-    <p>For NFS or SMB mounted files, this feature may be disabled explicitly
+    <p>For network mounted files, this feature may be disabled explicitly
     for the offending files by specifying:</p>
 
     <example>
@@ -927,13 +883,50 @@ Locations</a></seealso>
     </example>
     <p>Please note that the per-directory and .htaccess configuration
        of <directive>EnableSendfile</directive> is not supported by
-       <module>mod_disk_cache</module>.
+       <module>mod_cache_disk</module>.
        Only global definition of <directive>EnableSendfile</directive>
        is taken into account by the module.
     </p>
 </usage>
 </directivesynopsis>
 
+<directivesynopsis>
+<name>Error</name>
+<description>Abort configuration parsing with a custom error message</description>
+<syntax>Error <var>message</var></syntax>
+<contextlist><context>server config</context><context>virtual host</context>
+<context>directory</context><context>.htaccess</context>
+</contextlist>
+<compatibility>2.3.9 and later</compatibility>
+
+<usage>
+    <p>If an error can be detected within the configuration, this
+    directive can be used to generate a custom error message, and halt
+    configuration parsing.  The typical use is for reporting required
+    modules which are missing from the configuration.</p>
+
+    <example><title>Example</title>
+      # ensure that mod_include is loaded<br />
+      &lt;IfModule !include_module&gt;<br />
+      Error mod_include is required by mod_foo.  Load it with LoadModule.<br />
+      &lt;/IfModule&gt;<br />
+      <br />
+      # ensure that exactly one of SSL,NOSSL is defined<br />
+      &lt;IfDefine SSL&gt;<br />
+      &lt;IfDefine NOSSL&gt;<br />
+      Error Both SSL and NOSSL are defined.  Define only one of them.<br />
+      &lt;/IfDefine&gt;<br />
+      &lt;/IfDefine&gt;<br />
+      &lt;IfDefine !SSL&gt;<br />
+      &lt;IfDefine !NOSSL&gt;<br />
+      Error Either SSL or NOSSL must be defined.<br />
+      &lt;/IfDefine&gt;<br />
+      &lt;/IfDefine&gt;<br />
+    </example>
+
+</usage>
+</directivesynopsis>
+
 <directivesynopsis>
 <name>ErrorDocument</name>
 <description>What the server will return to the client
@@ -943,11 +936,9 @@ in case of an error</description>
 <context>directory</context><context>.htaccess</context>
 </contextlist>
 <override>FileInfo</override>
-<compatibility>Quoting syntax for text messages is different in Apache
-2.0</compatibility>
 
 <usage>
-    <p>In the event of a problem or error, Apache can be configured
+    <p>In the event of a problem or error, Apache httpd can be configured
     to do one of four things,</p>
 
     <ol>
@@ -965,7 +956,7 @@ in case of an error</description>
     <p>The first option is the default, while options 2-4 are
     configured using the <directive>ErrorDocument</directive>
     directive, which is followed by the HTTP response code and a URL
-    or a message. Apache will sometimes offer additional information
+    or a message. Apache httpd will sometimes offer additional information
     regarding the problem/error.</p>
 
     <p>URLs can begin with a slash (/) for local web-paths (relative
@@ -981,9 +972,9 @@ in case of an error</description>
     </example>
 
     <p>Additionally, the special value <code>default</code> can be used
-    to specify Apache's simple hardcoded message.  While not required
+    to specify Apache httpd's simple hardcoded message.  While not required
     under normal circumstances, <code>default</code> will restore
-    Apache's simple hardcoded message for configurations that would
+    Apache httpd's simple hardcoded message for configurations that would
     otherwise inherit an existing <directive>ErrorDocument</directive>.</p>
 
     <example>
@@ -997,7 +988,7 @@ in case of an error</description>
 
     <p>Note that when you specify an <directive>ErrorDocument</directive>
     that points to a remote URL (ie. anything with a method such as
-    <code>http</code> in front of it), Apache will send a redirect to the
+    <code>http</code> in front of it), Apache HTTP Server will send a redirect to the
     client to tell it where to find the document, even if the
     document ends up being on the same server. This has several
     implications, the most important being that the client will not
@@ -1028,11 +1019,11 @@ in case of an error</description>
     will be immediately halted and the internal error message returned.
     This is necessary to guard against security problems caused by
     bad requests.</p>
-   
+
     <p>If you are using mod_proxy, you may wish to enable
     <directive module="mod_proxy">ProxyErrorOverride</directive> so that you can provide
     custom error messages on behalf of your Origin servers. If you don't enable ProxyErrorOverride,
-    Apache will not generate custom error documents for proxied content.</p>
+    Apache httpd will not generate custom error documents for proxied content.</p>
 </usage>
 
 <seealso><a href="../custom-error.html">documentation of
@@ -1050,7 +1041,7 @@ in case of an error</description>
 <usage>
     <p>The <directive>ErrorLog</directive> directive sets the name of
     the file to which the server will log any errors it encounters. If
-    the <var>file-path</var> is not absolute then it is assumed to be 
+    the <var>file-path</var> is not absolute then it is assumed to be
     relative to the <directive module="core">ServerRoot</directive>.</p>
 
     <example><title>Example</title>
@@ -1058,19 +1049,24 @@ in case of an error</description>
     </example>
 
     <p>If the <var>file-path</var>
-    begins with a pipe (|) then it is assumed to be a command to spawn
-    to handle the error log.</p>
+    begins with a pipe character "<code>|</code>" then it is assumed to be a
+    command to spawn to handle the error log.</p>
 
     <example><title>Example</title>
     ErrorLog "|/usr/local/bin/httpd_errors"
     </example>
 
+    <p>See the notes on <a href="../logs.html#piped">piped logs</a> for
+    more information.</p>
+
     <p>Using <code>syslog</code> instead of a filename enables logging
     via syslogd(8) if the system supports it. The default is to use
     syslog facility <code>local7</code>, but you can override this by
     using the <code>syslog:<var>facility</var></code> syntax where
     <var>facility</var> can be one of the names usually documented in
-    syslog(1).</p>
+    syslog(1).  The facility is effectively global, and if it is changed
+    in individual virtual hosts, the final facility specified affects the
+    entire server.</p>
 
     <example><title>Example</title>
     ErrorLog syslog:user
@@ -1083,13 +1079,215 @@ in case of an error</description>
     anyone other than the user that starts the server.</p>
     <note type="warning"><title>Note</title>
       <p>When entering a file path on non-Unix platforms, care should be taken
-      to make sure that only forward slashed are used even though the platform
-      may allow the use of back slashes. In general it is a good idea to always 
+      to make sure that only forward slashes are used even though the platform
+      may allow the use of back slashes. In general it is a good idea to always
       use forward slashes throughout the configuration files.</p>
     </note>
 </usage>
 <seealso><directive module="core">LogLevel</directive></seealso>
-<seealso><a href="../logs.html">Apache Log Files</a></seealso>
+<seealso><a href="../logs.html">Apache HTTP Server Log Files</a></seealso>
+</directivesynopsis>
+
+<directivesynopsis>
+<name>ErrorLogFormat</name>
+<description>Format specification for error log entries</description>
+<syntax> ErrorLog [connection|request] <var>format</var></syntax>
+<contextlist><context>server config</context><context>virtual host</context>
+</contextlist>
+<compatibility>Available in Apache httpd 2.3.9 and later</compatibility>
+
+<usage>
+    <p><directive>ErrorLogFormat</directive> allows to specify what
+    supplementary information is logged in the error log in addition to the
+    actual log message.</p>
+
+    <example><title>Simple example</title>
+        ErrorLogFormat "[%t] [%l] [pid %P] %F: %E: [client %a] %M"
+    </example>
+
+    <p>Specifying <code>connection</code> or <code>request</code> as first
+    paramter allows to specify additional formats, causing additional
+    information to be logged when the first message is logged for a specific
+    connection or request, respectivly. This additional information is only
+    logged once per connection/request. If a connection or request is processed
+    without causing any log message, the additional information is not logged
+    either.</p>
+
+    <p>It can happen that some format string items do not produce output.  For
+    example, the Referer header is only present if the log message is
+    associated to a request and the log message happens at a time when the
+    Referer header has already been read from the client.  If no output is
+    produced, the default behaviour is to delete everything from the preceeding
+    space character to the next space character.  This means the log line is
+    implicitly divided into fields on non-whitespace to whitespace transitions.
+    If a format string item does not produce output, the whole field is
+    ommitted.  For example, if the remote address <code>%a</code> in the log
+    format <code>[%t] [%l] [%a] %M&nbsp;</code> is not available, the surrounding
+    brackets are not logged either.  Space characters can be escaped with a
+    backslash to prevent them from delimiting a field.  The combination '%&nbsp;'
+    (percent space) is a zero-witdh field delimiter that does not produce any
+    output.</p>
+
+    <p>The above behaviour can be changed by adding modifiers to the format
+    string item. A <code>-</code> (minus) modifier causes a minus to be logged if the
+    respective item does not produce any output. In once-per-connection/request
+    formats, it is also possible to use the <code>+</code> (plus) modifier. If an
+    item with the plus modifier does not produce any output, the whole line is
+    ommitted.</p>
+
+    <p>A number as modifier can be used to assign a log severity level to a
+    format item. The item will only be logged if the severity of the log
+    message is not higher than the specified log severity level. The number can
+    range from 1 (alert) over 4 (warn) and 7 (debug) to 15 (trace8).</p>
+
+    <p>Some format string items accept additional parameters in braces.</p>
+
+    <table border="1" style="zebra">
+    <columnspec><column width=".2"/><column width=".8"/></columnspec>
+
+    <tr><th>Format&nbsp;String</th> <th>Description</th></tr>
+
+    <tr><td><code>%%</code></td>
+        <td>The percent sign</td></tr>
+
+    <tr><td><code>%...a</code></td>
+        <td>Remote IP-address and port</td></tr>
+
+    <tr><td><code>%...A</code></td>
+        <td>Local IP-address and port</td></tr>
+
+    <tr><td><code>%...{name}e</code></td>
+        <td>Request environment variable <code>name</code></td></tr>
+
+    <tr><td><code>%...E</code></td>
+        <td>APR/OS error status code and string</td></tr>
+
+    <tr><td><code>%...F</code></td>
+        <td>Source file name and line number of the log call</td></tr>
+
+    <tr><td><code>%...{name}i</code></td>
+        <td>Request header <code>name</code></td></tr>
+
+    <tr><td><code>%...k</code></td>
+        <td>Number of keep-alive requests on this connection</td></tr>
+
+    <tr><td><code>%...l</code></td>
+        <td>Loglevel of the message</td></tr>
+
+    <tr><td><code>%...L</code></td>
+        <td>Log ID of the request</td></tr>
+
+    <tr><td><code>%...{c}L</code></td>
+        <td>Log ID of the connection</td></tr>
+
+    <tr><td><code>%...{C}L</code></td>
+        <td>Log ID of the connection if used in connection scope, empty otherwise</td></tr>
+
+    <tr><td><code>%...m</code></td>
+        <td>Name of the module logging the message</td></tr>
+
+    <tr><td><code>%M</code></td>
+        <td>The actual log message</td></tr>
+
+    <tr><td><code>%...{name}n</code></td>
+        <td>Request note <code>name</code></td></tr>
+
+    <tr><td><code>%...P</code></td>
+        <td>Process ID of current process</td></tr>
+
+    <tr><td><code>%...T</code></td>
+        <td>Thread ID of current thread</td></tr>
+
+    <tr><td><code>%...t</code></td>
+        <td>The current time</td></tr>
+
+    <tr><td><code>%...{u}t</code></td>
+        <td>The current time including micro-seconds</td></tr>
+
+    <tr><td><code>%...{cu}t</code></td>
+        <td>The current time in compact ISO 8601 format, including
+            micro-seconds</td></tr>
+
+    <tr><td><code>%...v</code></td>
+        <td>The canonical <directive module="core">ServerName</directive>
+            of the current server.</td></tr>
+
+    <tr><td><code>%...V</code></td>
+        <td>The server name of the server serving the request according to the
+            <directive module="core" >UseCanonicalName</directive>
+            setting.</td></tr>
+
+    <tr><td><code>\&nbsp;</code> (backslash space)</td>
+        <td>Non-field delimiting space</td></tr>
+
+    <tr><td><code>%&nbsp;</code> (percent space)</td>
+        <td>Field delimiter (no output)</td></tr>
+    </table>
+
+    <p>The log ID format <code>%L</code> produces a unique id for a connection
+    or request. This can be used to correlate which log lines belong to the
+    same connection or request, which request happens on which connection.
+    A <code>%L</code> format string is also available in
+    <module>mod_log_config</module>, to allow to correlate access log entries
+    with error log lines. If <module>mod_unique_id</module> is loaded, its
+    unique id will be used as log ID for requests.</p>
+
+    <example><title>Example (somewhat similar to default format)</title>
+        ErrorLogFormat "[%{u}t] [%-m:%l] [pid %P] %7F: %E: [client\ %a]
+        %M%&nbsp;,\&nbsp;referer\&nbsp;%{Referer}i"
+    </example>
+
+    <example><title>Example (similar to the 2.2.x format)</title>
+        ErrorLogFormat "[%t] [%l] %7F: %E: [client\ %a]
+        %M%&nbsp;,\&nbsp;referer\&nbsp;%{Referer}i"
+    </example>
+
+    <example><title>Advanced example with request/connection log IDs</title>
+        ErrorLogFormat "[%{uc}t] [%-m:%-l] [R:%L] [C:%{C}L] %7F: %E: %M"<br/>
+        ErrorLogFormat request "[%{uc}t] [R:%L] Request %k on C:%{c}L pid:%P tid:%T"<br/>
+        ErrorLogFormat request "[%{uc}t] [R:%L] UA:'%+{User-Agent}i'"<br/>
+        ErrorLogFormat request "[%{uc}t] [R:%L] Referer:'%+{Referer}i'"<br/>
+        ErrorLogFormat connection "[%{uc}t] [C:%{c}L] local\ %a remote\ %A"<br/>
+    </example>
+
+</usage>
+<seealso><directive module="core">ErrorLog</directive></seealso>
+<seealso><directive module="core">LogLevel</directive></seealso>
+<seealso><a href="../logs.html">Apache HTTP Server Log Files</a></seealso>
+</directivesynopsis>
+
+<directivesynopsis>
+<name>ExtendedStatus</name>
+<description>Keep track of extended status information for each
+request</description>
+<syntax>ExtendedStatus On|Off</syntax>
+<default>ExtendedStatus Off[*]</default>
+<contextlist><context>server config</context></contextlist>
+
+<usage>
+    <p>This option tracks additional data per worker about the
+    currently executing request, and a utilization summary; you
+    can see these variables during runtime by configuring
+    <module>mod_status</module>.  Note that other modules may
+    rely on this scoreboard.</p>
+
+    <p>This setting applies to the entire server, and cannot be
+    enabled or disabled on a virtualhost-by-virtualhost basis.
+    The collection of extended status information can slow down
+    the server.  Also note that this setting cannot be changed
+    during a graceful restart.</p>
+
+    <note>
+    <p>Note that loading <module>mod_status</module> will change
+    the default behavior to ExtendedStatus On, while other
+    third party modules may do the same.  Such modules rely on
+    collecting detailed information about the state of all workers.
+    The default is changed by <module>mod_status</module> beginning
+    with version 2.3.6; the previous default was always Off.</p>
+    </note>
+
+</usage>
+
 </directivesynopsis>
 
 <directivesynopsis>
@@ -1109,9 +1307,7 @@ HTTP response header for static files</description>
     attributes that are used to create the <code>ETag</code> (entity
     tag) response header field when the document is based on a static file.
     (The <code>ETag</code> value is used in cache management to save
-    network bandwidth.) In Apache 1.3.22 and earlier, the
-    <code>ETag</code> value was <em>always</em> formed
-    from the file's inode, size, and last-modified time (mtime). The
+    network bandwidth.) The
     <directive>FileETag</directive> directive allows you to choose
     which of these -- if any -- should be used. The recognized keywords are:
     </p>
@@ -1152,8 +1348,8 @@ HTTP response header for static files</description>
     changed via <directive>FileETag</directive>.
     </note>
     <note><title>Server Side Includes</title>
-    An ETag is not generated for responses parsed by <module>mod_include</module>, 
-    since the response entity can change without a change of the INode, MTime, or Size 
+    An ETag is not generated for responses parsed by <module>mod_include</module>,
+    since the response entity can change without a change of the INode, MTime, or Size
     of the static file with embedded SSI directives.
     </note>
 
@@ -1192,7 +1388,7 @@ filenames</description>
     <p>The <var>filename</var> argument should include a filename, or
     a wild-card string, where <code>?</code> matches any single character,
     and <code>*</code> matches any sequences of characters.
-    <glossary ref="regex">Regular expressions</glossary> 
+    <glossary ref="regex">Regular expressions</glossary>
     can also be used, with the addition of the
     <code>~</code> character. For example:</p>
 
@@ -1231,7 +1427,7 @@ filenames</description>
     <p>The <directive type="section">FilesMatch</directive> directive
     limits the scope of the enclosed directives by filename, just as the
     <directive module="core" type="section">Files</directive> directive
-    does. However, it accepts a <glossary ref="regex">regular 
+    does. However, it accepts a <glossary ref="regex">regular
     expression</glossary>. For example:</p>
 
     <example>
@@ -1254,7 +1450,7 @@ media type in the HTTP Content-Type header field</description>
 <contextlist><context>directory</context><context>.htaccess</context>
 </contextlist>
 <override>FileInfo</override>
-<compatibility>Moved to the core in Apache 2.0</compatibility>
+<compatibility>Moved to the core in Apache httpd 2.0</compatibility>
 
 <usage>
     <p>When placed into an <code>.htaccess</code> file or a
@@ -1294,6 +1490,30 @@ media type in the HTTP Content-Type header field</description>
       </indent>
       &lt;/Location&gt;
     </example>
+
+    <p>This directive primarily overrides the content types generated for
+    static files served out of the filesystem.  For resources other than
+    static files, where the generator of the response typically specifies
+    a Content-Type, this directive has no effect.</p>
+
+</usage>
+</directivesynopsis>
+<directivesynopsis>
+<name>GprofDir</name>
+<description>Directory to write gmon.out profiling data to.  </description>
+<syntax>GprofDir <var>/tmp/gprof/</var>|<var>/tmp/gprof/</var>%</syntax>
+<contextlist><context>server config</context><context>virtual host</context>
+</contextlist>
+
+<usage>
+    <p>When the server has been compiled with gprof profiling suppport,
+    <directive>GprofDir</directive> causes <code>gmon.out</code> files to
+    be written to the specified directory when the process exits.  If the
+    argument ends with a percent symbol ('%'), subdirectories are created
+    for each process id.</p>
+
+    <p>This directive currently only works with the <module>prefork</module>
+    MPM.</p>
 </usage>
 </directivesynopsis>
 
@@ -1363,8 +1583,18 @@ satisfied by a request at runtime</description>
     <p>You may compare the value of any variable in the request headers
     ($req), response headers ($resp) or environment ($env) in your
     expression.</p>
+
+    <p>Apart from <code>=</code>, <code>If</code> can use the <code>IN</code>
+    operator to compare if the expression is in a given range:</p>
+
+    <example>
+        &lt;If %{REQUEST_METHOD} IN GET,HEAD,OPTIONS&gt;
+    </example>
+
 </usage>
 
+<seealso><a href="../expr.html">Expressions in Apache HTTP Server</a>,
+for a complete reference and more examples.</seealso>
 <seealso><a href="../sections.html">How &lt;Directory&gt;, &lt;Location&gt;,
     &lt;Files&gt; sections work</a> for an explanation of how these
     different sections are combined when a request is received.
@@ -1433,7 +1663,7 @@ if a test is true at startup</description>
           &lt;/IfDefine&gt;<br />
           &lt;IfDefine !MemCache&gt;<br />
           <indent>
-            LoadModule disk_cache_module   modules/mod_disk_cache.so<br />
+            LoadModule cache_disk_module   modules/mod_cache_disk.so<br />
           </indent>
           &lt;/IfDefine&gt;
         </indent>
@@ -1476,7 +1706,7 @@ later.</compatibility>
 
     <p>In the former case, the directives between the start and end
     markers are only processed if the module named <var>module</var>
-    is included in Apache -- either compiled in or
+    is included in Apache httpd -- either compiled in or
     dynamically loaded using <directive module="mod_so"
     >LoadModule</directive>. The second format reverses the test,
     and only processes the directives if <var>module</var> is
@@ -1505,28 +1735,51 @@ later.</compatibility>
 <name>Include</name>
 <description>Includes other configuration files from within
 the server configuration files</description>
-<syntax>Include <var>file-path</var>|<var>directory-path</var></syntax>
+<syntax>Include [<var>optional</var>|<var>strict</var>] <var>file-path</var>|<var>directory-path</var>|<var>wildcard</var></syntax>
 <contextlist><context>server config</context><context>virtual host</context>
 <context>directory</context>
 </contextlist>
-<compatibility>Wildcard matching available in 2.0.41 and later</compatibility>
+<compatibility>Wildcard matching available in 2.0.41 and later, directory
+wildcard matching available in 2.3.6 and later</compatibility>
 
 <usage>
     <p>This directive allows inclusion of other configuration files
     from within the server configuration files.</p>
 
-    <p>Shell-style (<code>fnmatch()</code>) wildcard characters can be used to
-    include several files at once, in alphabetical order. In
-    addition, if <directive>Include</directive> points to a directory,
-    rather than a file, Apache will read all files in that directory
-    and any subdirectory.  However, including entire directories is not
-    recommended, because it is easy to accidentally leave temporary
-    files in a directory that can cause <program>httpd</program> to
-    fail. Instead, we encourage you to use the wildcard syntax shown
-    below, to include files that match a particular pattern, such as
-    *.conf, for example.</p>
-
-    <p>The file path specified may be an absolute path, or may be relative 
+    <p>Shell-style (<code>fnmatch()</code>) wildcard characters can be used
+    in the filename or directory parts of the path to include several files
+    at once, in alphabetical order. In addition, if
+    <directive>Include</directive> points to a directory, rather than a file,
+    Apache httpd will read all files in that directory and any subdirectory.
+    However, including entire directories is not recommended, because it is
+    easy to accidentally leave temporary files in a directory that can cause
+    <program>httpd</program> to fail. Instead, we encourage you to use the
+    wildcard syntax shown below, to include files that match a particular
+    pattern, such as *.conf, for example.</p>
+
+    <p>When a wildcard is specified for a <strong>file</strong> component of
+    the path, and no file matches the wildcard, the
+    <directive module="core">Include</directive>
+    directive will be <strong>silently ignored</strong>. When a wildcard is
+    specified for a <strong>directory</strong> component of the path, and
+    no directory matches the wildcard, the
+    <directive module="core">Include</directive> directive will
+    <strong>fail with an error</strong> saying the directory cannot be found.
+    </p>
+
+    <p>For further control over the behaviour of the server when no files or
+    directories match, prefix the path with the modifiers <var>optional</var>
+    or <var>strict</var>. If <var>optional</var> is specified, any wildcard
+    file or directory that does not match will be silently ignored. If
+    <var>strict</var> is specified, any wildcard file or directory that does
+    not match at least one file will cause server startup to fail.</p>
+
+    <p>When a directory or file component of the path is
+    specified exactly, and that directory or file does not exist,
+    <directive module="core">Include</directive> directive will fail with an
+    error saying the file or directory cannot be found.</p>
+
+    <p>The file path specified may be an absolute path, or may be relative
     to the <directive module="core">ServerRoot</directive> directory.</p>
 
     <p>Examples:</p>
@@ -1543,6 +1796,31 @@ the server configuration files</description>
       Include conf/ssl.conf<br />
       Include conf/vhosts/*.conf
     </example>
+
+    <p>Wildcards may be included in the directory or file portion of the
+    path. In the following example, the server will fail to load if no
+    directories match conf/vhosts/*, but will load successfully if no
+    files match *.conf.</p>
+
+    <example>
+      Include conf/vhosts/*/vhost.conf<br />
+      Include conf/vhosts/*/*.conf
+    </example>
+
+    <p>In this example, the server will fail to load if either
+    conf/vhosts/* matches no directories, or if *.conf matches no files:</p>
+
+    <example>
+      Include strict conf/vhosts/*/*.conf
+    </example>
+
+    <p>In this example, the server load successfully if either conf/vhosts/*
+    matches no directories, or if *.conf matches no files:</p>
+
+    <example>
+      Include optional conf/vhosts/*/*.conf
+    </example>
+
 </usage>
 
 <seealso><program>apachectl</program></seealso>
@@ -1579,7 +1857,7 @@ the server configuration files</description>
 
     <p>When a client uses a Keep-Alive connection it will be counted
     as a single "request" for the <directive module="mpm_common"
-    >MaxRequestsPerChild</directive> directive, regardless
+    >MaxConnectionsPerChild</directive> directive, regardless
     of how many requests are sent using the connection.</p>
 </usage>
 
@@ -1594,11 +1872,11 @@ requests on a persistent connection</description>
 <default>KeepAliveTimeout 5</default>
 <contextlist><context>server config</context><context>virtual host</context>
 </contextlist>
-<compatibility>Specifying a value in milliseconds is available in 
-Apache 2.3.2 and later</compatibility>
+<compatibility>Specifying a value in milliseconds is available in
+Apache httpd 2.3.2 and later</compatibility>
 
 <usage>
-    <p>The number of seconds Apache will wait for a subsequent
+    <p>The number of seconds Apache httpd will wait for a subsequent
     request before closing the connection. By adding a postfix of ms the
     timeout can be also set in milliseconds. Once a request has been
     received, the timeout value specified by the
@@ -1608,7 +1886,7 @@ Apache 2.3.2 and later</compatibility>
     may cause performance problems in heavily loaded servers. The
     higher the timeout, the more server processes will be kept
     occupied waiting on connections with idle clients.</p>
-    
+
     <p>In a name-based virtual host context, the value of the first
     defined virtual host (the default host) in a set of <directive
     module="core">NameVirtualHost</directive> will be used.
@@ -1692,12 +1970,12 @@ methods</description>
       &lt;LimitExcept GET&gt;
       <indent>
         Require valid-user
-      </indent> 
+      </indent>
       &lt;/LimitExcept&gt;<br />
       &lt;Limit POST&gt;
       <indent>
         Require group editors
-      </indent> 
+      </indent>
       &lt;/Limit&gt;
     </example>
 </usage>
@@ -1745,12 +2023,12 @@ subrequests</description>
 <default>LimitInternalRecursion 10</default>
 <contextlist><context>server config</context><context>virtual host</context>
 </contextlist>
-<compatibility>Available in Apache 2.0.47 and later</compatibility>
+<compatibility>Available in Apache httpd 2.0.47 and later</compatibility>
 
 <usage>
     <p>An internal redirect happens, for example, when using the <directive
     module="mod_actions">Action</directive> directive, which internally
-    redirects the original request to a CGI script. A subrequest is Apache's
+    redirects the original request to a CGI script. A subrequest is Apache httpd's
     mechanism to find out what would happen for some URI if it were requested.
     For example, <module>mod_dir</module> uses subrequests to look for the
     files listed in the <directive module="mod_dir">DirectoryIndex</directive>
@@ -1786,7 +2064,8 @@ from the client</description>
 <usage>
     <p>This directive specifies the number of <var>bytes</var> from 0
     (meaning unlimited) to 2147483647 (2GB) that are allowed in a
-    request body.</p>
+    request body. See the note below for the limited applicability
+    to proxy requests.</p>
 
     <p>The <directive>LimitRequestBody</directive> directive allows
     the user to set a limit on the allowed size of an HTTP request
@@ -1814,6 +2093,10 @@ from the client</description>
       LimitRequestBody 102400
     </example>
 
+    <note><p>For a full description of how this directive is interpreted by
+    proxy requests, see the <module>mod_proxy</module> documentation.</p>
+    </note>
+
 </usage>
 </directivesynopsis>
 
@@ -1823,7 +2106,7 @@ from the client</description>
 will be accepted from the client</description>
 <syntax>LimitRequestFields <var>number</var></syntax>
 <default>LimitRequestFields 100</default>
-<contextlist><context>server config</context></contextlist>
+<contextlist><context>server config</context><context>virtual host</context></contextlist>
 
 <usage>
     <p><var>Number</var> is an integer from 0 (meaning unlimited) to
@@ -1855,6 +2138,12 @@ will be accepted from the client</description>
       LimitRequestFields 50
     </example>
 
+     <note type="warning"><title>Warning</title>
+     <p> When name-based virtual hosting is used, the value for this
+     directive is taken from the default (first-listed) virtual host for the
+     <directive>NameVirtualHost</directive> the connection was mapped to.</p>
+     </note>
+
 </usage>
 </directivesynopsis>
 
@@ -1864,18 +2153,18 @@ will be accepted from the client</description>
 client</description>
 <syntax>LimitRequestFieldSize <var>bytes</var></syntax>
 <default>LimitRequestFieldSize 8190</default>
-<contextlist><context>server config</context></contextlist>
+<contextlist><context>server config</context><context>virtual host</context></contextlist>
 
 <usage>
     <p>This directive specifies the number of <var>bytes</var>
     that will be allowed in an HTTP request header.</p>
 
     <p>The <directive>LimitRequestFieldSize</directive> directive
-    allows the server administrator to reduce or increase the limit 
+    allows the server administrator to reduce or increase the limit
     on the allowed size of an HTTP request header field. A server
-    needs this value to be large enough to hold any one header field 
-    from a normal client request. The size of a normal request header 
-    field will vary greatly among different client implementations, 
+    needs this value to be large enough to hold any one header field
+    from a normal client request. The size of a normal request header
+    field will vary greatly among different client implementations,
     often depending upon the extent to which a user has configured
     their browser to support detailed content negotiation. SPNEGO
     authentication headers can be up to 12392 bytes.</p>
@@ -1893,6 +2182,12 @@ client</description>
     <note>Under normal conditions, the value should not be changed from
     the default.</note>
 
+    <note type="warning"><title>Warning</title>
+    <p> When name-based virtual hosting is used, the value for this
+    directive is taken from the default (first-listed) virtual host for the
+    <directive>NameVirtualHost</directive> the connection was mapped to.</p>
+    </note>
+
 </usage>
 </directivesynopsis>
 
@@ -1902,10 +2197,10 @@ client</description>
 from the client</description>
 <syntax>LimitRequestLine <var>bytes</var></syntax>
 <default>LimitRequestLine 8190</default>
-<contextlist><context>server config</context></contextlist>
+<contextlist><context>server config</context><context>virtual host</context></contextlist>
 
 <usage>
-    <p>This directive sets the number of <var>bytes</var> that will be 
+    <p>This directive sets the number of <var>bytes</var> that will be
     allowed on the HTTP request-line.</p>
 
     <p>The <directive>LimitRequestLine</directive> directive allows
@@ -1930,6 +2225,13 @@ from the client</description>
 
     <note>Under normal conditions, the value should not be changed from
     the default.</note>
+
+    <note type="warning"><title>Warning</title>
+    <p> When name-based virtual hosting is used, the value for this
+    directive is taken from the default (first-listed) virtual host for the
+    <directive>NameVirtualHost</directive> the connection was mapped to.</p>
+    </note>
+
 </usage>
 </directivesynopsis>
 
@@ -1983,7 +2285,39 @@ URLs</description>
     locations.  Since several different URLs may map to the same
     filesystem location, such access controls may by circumvented.</p>
 
-    <note><title>When to use <directive 
+    <p>The enclosed directives will be applied to the request if the path component
+    of the URL meets <em>any</em> of the following criteria:
+    </p>
+    <ul>
+      <li>The specified location matches exactly the path component of the URL.
+      </li>
+      <li>The specified location, which ends in a forward slash, is a prefix
+      of the path component of the URL (treated as a context root).
+      </li>
+      <li>The specified location, with the addition of a trailing slash, is a
+      prefix of the path component of the URL (also treated as a context root).
+      </li>
+    </ul>
+    <p>
+    In the example below, where no trailing slash is used, requests to
+    /private1, /private1/ and /private1/file.txt will have the enclosed
+    directives applied, but /private1other would not.
+    </p>
+    <example>
+      &lt;Location /private1&gt;
+          ...
+    </example>
+    <p>
+    In the example below, where a trailing slash is used, requests to
+    /private2/ and /private2/file.txt will have the enclosed
+    directives applied, but /private2 and /private2other would not.
+    </p>
+    <example>
+      &lt;Location /private2<em>/</em>&gt;
+          ...
+    </example>
+
+    <note><title>When to use <directive
     type="section">Location</directive></title>
 
     <p>Use <directive type="section">Location</directive> to apply
@@ -1991,7 +2325,7 @@ URLs</description>
     content that lives in the filesystem, use <directive
     type="section" module="core">Directory</directive> and <directive
     type="section" module="core">Files</directive>.  An exception is
-    <code>&lt;Location /&gt;</code>, which is an easy way to 
+    <code>&lt;Location /&gt;</code>, which is an easy way to
     apply a configuration to the entire server.</p>
     </note>
 
@@ -2007,7 +2341,7 @@ URLs</description>
     characters. Neither wildcard character matches a / in the URL-path.</p>
 
     <p><glossary ref="regex">Regular expressions</glossary>
-    can also be used, with the addition of the <code>~</code> 
+    can also be used, with the addition of the <code>~</code>
     character. For example:</p>
 
     <example>
@@ -2032,9 +2366,7 @@ URLs</description>
       &lt;Location /status&gt;<br />
       <indent>
         SetHandler server-status<br />
-        Order Deny,Allow<br />
-        Deny from all<br />
-        Allow from .example.com<br />
+        Require host example.com<br />
       </indent>
       &lt;/Location&gt;
     </example>
@@ -2099,10 +2431,15 @@ matching URLs</description>
 <directivesynopsis>
 <name>LogLevel</name>
 <description>Controls the verbosity of the ErrorLog</description>
-<syntax>LogLevel <var>level</var></syntax>
+<syntax>LogLevel [<var>module</var>:]<var>level</var>
+    [<var>module</var>:<var>level</var>] ...
+</syntax>
 <default>LogLevel warn</default>
 <contextlist><context>server config</context><context>virtual host</context>
+<context>directory</context>
 </contextlist>
+<compatibility>Per-module and per-directory configuration is available in
+    Apache HTTP Server 2.3.6 and later</compatibility>
 
 <usage>
     <p><directive>LogLevel</directive> adjusts the verbosity of the
@@ -2188,6 +2525,62 @@ matching URLs</description>
 
         <td>"Opening config file ..."</td>
       </tr>
+      <tr>
+        <td><code>trace1</code> </td>
+
+        <td>Trace messages</td>
+
+        <td>"proxy: FTP: control connection complete"</td>
+      </tr>
+      <tr>
+        <td><code>trace2</code> </td>
+
+        <td>Trace messages</td>
+
+        <td>"proxy: CONNECT: sending the CONNECT request to the remote proxy"</td>
+      </tr>
+      <tr>
+        <td><code>trace3</code> </td>
+
+        <td>Trace messages</td>
+
+        <td>"openssl: Handshake: start"</td>
+      </tr>
+      <tr>
+        <td><code>trace4</code> </td>
+
+        <td>Trace messages</td>
+
+        <td>"read from buffered SSL brigade, mode 0, 17 bytes"</td>
+      </tr>
+      <tr>
+        <td><code>trace5</code> </td>
+
+        <td>Trace messages</td>
+
+        <td>"map lookup FAILED: map=rewritemap key=keyname"</td>
+      </tr>
+      <tr>
+        <td><code>trace6</code> </td>
+
+        <td>Trace messages</td>
+
+        <td>"cache lookup FAILED, forcing new map lookup"</td>
+      </tr>
+      <tr>
+        <td><code>trace7</code> </td>
+
+        <td>Trace messages, dumping large amounts of data</td>
+
+        <td>"| 0000: 02 23 44 30 13 40 ac 34 df 3d bf 9a 19 49 39 15 |"</td>
+      </tr>
+      <tr>
+        <td><code>trace8</code> </td>
+
+        <td>Trace messages, dumping large amounts of data</td>
+
+        <td>"| 0000: 02 23 44 30 13 40 ac 34 df 3d bf 9a 19 49 39 15 |"</td>
+      </tr>
     </table>
 
     <p>When a particular level is specified, messages from all
@@ -2211,6 +2604,36 @@ matching URLs</description>
       logged. However, this doesn't apply when logging is done
       using <code>syslog</code>.</p>
     </note>
+
+    <p>Specifying a level without a module name will reset the level
+    for all modules to that level.  Specifying a level with a module
+    name will set the level for that module only. It is possible to
+    use the module source file name, the module identifier, or the
+    module identifier with the trailing <code>_module</code> omitted
+    as module specification. This means the following three specifications
+    are equivalent:</p>
+
+    <example>
+      LogLevel info ssl:warn<br />
+      LogLevel info mod_ssl.c:warn<br />
+      LogLevel info ssl_module:warn<br />
+    </example>
+
+    <p>It is also possible to change the level per directory:</p>
+
+    <example>
+        LogLevel info<br />
+        &lt;Directory /usr/local/apache/htdocs/app&gt;<br />
+        &nbsp; LogLevel debug<br />
+        &lt;/Files&gt;
+    </example>
+
+    <note>
+        Per directory loglevel configuration only affects messages that are
+       logged after the request has been parsed and that are associated with
+       the request. Log messages which are associated with the connection or
+       the server are not affected.
+    </note>
 </usage>
 </directivesynopsis>
 
@@ -2246,7 +2669,7 @@ or specified mutexes</description>
 <syntax>Mutex <var>mechanism</var> [default|<var>mutex-name</var>] ... [OmitPID]</syntax>
 <default>Mutex default</default>
 <contextlist><context>server config</context></contextlist>
-<compatibility>Available in Apache 2.3.4 and later</compatibility>
+<compatibility>Available in Apache HTTP Server 2.3.4 and later</compatibility>
 
 <usage>
     <p>The <directive>Mutex</directive> directive sets the mechanism,
@@ -2282,7 +2705,7 @@ or specified mutexes</description>
         <li><code>default | yes</code>
         <p>This selects the default locking implementation, as determined by
         <glossary>APR</glossary>.  The default locking implementation can
-        be displayed by running <program>httpd</program> with the 
+        be displayed by running <program>httpd</program> with the
         <code>-V</code> option.</p></li>
 
         <li><code>none | no</code>
@@ -2303,7 +2726,7 @@ or specified mutexes</description>
         <p>This is a mutex variant based on a SystemV IPC semaphore.</p>
 
         <note type="warning"><title>Warning</title>
-        <p>It is possible to "leak" SysV semaphores if processes crash 
+        <p>It is possible to "leak" SysV semaphores if processes crash
         before the semaphore is removed.</p>
        </note>
 
@@ -2338,7 +2761,7 @@ or specified mutexes</description>
         </li>
 
         <li><code>fcntl:/path/to/mutex</code>
-        <p>This is a mutex variant where a physical (lock-)file and the 
+        <p>This is a mutex variant where a physical (lock-)file and the
         <code>fcntl()</code> function are used as the mutex.</p>
 
         <note type="warning"><title>Warning</title>
@@ -2360,10 +2783,10 @@ or specified mutexes</description>
         order.</p></li>
     </ul>
 
-    <p>Most mechanisms are only available on selected platforms, where the 
+    <p>Most mechanisms are only available on selected platforms, where the
     underlying platform and <glossary>APR</glossary> support it.  Mechanisms
     which aren't available on all platforms are <em>posixsem</em>,
-    <em>sysvsem</em>, <em>sem</em>, <em>pthread</em>, <em>fcntl</em>, 
+    <em>sysvsem</em>, <em>sem</em>, <em>pthread</em>, <em>fcntl</em>,
     <em>flock</em>, and <em>file</em>.</p>
 
     <p>With the file-based mechanisms <em>fcntl</em> and <em>flock</em>,
@@ -2373,12 +2796,12 @@ or specified mutexes</description>
     filesystem for <code>/path/to/mutex</code> and never a directory residing
     on a NFS- or AFS-filesystem.  The basename of the file will be the mutex
     type, an optional instance string provided by the module, and unless the
-    <code>OmitPID</code> keyword is specified, the process id of the httpd 
+    <code>OmitPID</code> keyword is specified, the process id of the httpd
     parent process will be appended to to make the file name unique, avoiding
     conflicts when multiple httpd instances share a lock file directory.  For
     example, if the mutex name is <code>mpm-accept</code> and the lock file
     directory is <code>/var/httpd/locks</code>, the lock file name for the
-    httpd instance with parent process id 12345 would be 
+    httpd instance with parent process id 12345 would be
     <code>/var/httpd/locks/mpm-accept.12345</code>.</p>
 
     <note type="warning"><title>Security</title>
@@ -2469,15 +2892,15 @@ hosting</description>
 
 <usage>
 
-<p>A single <directive>NameVirtualHost</directive> directive 
-identifies a set of identical virtual hosts on which the server will  
-further select from on the basis of the <em>hostname</em> 
+<p>A single <directive>NameVirtualHost</directive> directive
+identifies a set of identical virtual hosts on which the server will
+further select from on the basis of the <em>hostname</em>
 requested by the client.  The <directive>NameVirtualHost</directive>
-directive is a required directive if you want to configure 
+directive is a required directive if you want to configure
 <a href="../vhosts/">name-based virtual hosts</a>.</p>
 
 <p>This directive, and the corresponding <directive >VirtualHost</directive>,
-<em>must</em> be qualified with a port number if the server supports both HTTP 
+<em>must</em> be qualified with a port number if the server supports both HTTP
 and HTTPS connections.</p>
 
 <p>Although <var>addr</var> can be a hostname, it is recommended
@@ -2485,16 +2908,16 @@ that you always use an IP address or a wildcard.  A wildcard
 NameVirtualHost matches only virtualhosts that also have a literal wildcard
 as their argument.</p>
 
-<p>In cases where a firewall or other proxy receives the requests and 
+<p>In cases where a firewall or other proxy receives the requests and
 forwards them on a different IP address to the server, you must specify the
 IP address of the physical interface on the machine which will be
 servicing the requests. </p>
 
-<p> In the example below, requests received on interface 192.0.2.1 and port 80 
+<p> In the example below, requests received on interface 192.0.2.1 and port 80
 will only select among the first two virtual hosts. Requests received on
 port 80 on any other interface will only select among the third and fourth
-virtual hosts. In the common case where the interface isn't important 
-to the mapping, only the "*:80" NameVirtualHost and VirtualHost directives 
+virtual hosts. In the common case where the interface isn't important
+to the mapping, only the "*:80" NameVirtualHost and VirtualHost directives
 are necessary.</p>
 
    <example>
@@ -2520,6 +2943,10 @@ are necessary.</p>
 
     </example>
 
+    <p>If no matching virtual host is found, then the first listed
+    virtual host that matches the IP address and port will be used.</p>
+
+
     <p>IPv6 addresses must be enclosed in square brackets, as shown
     in the following example:</p>
 
@@ -2554,11 +2981,12 @@ documentation</a></seealso>
 directory</description>
 <syntax>Options
     [+|-]<var>option</var> [[+|-]<var>option</var>] ...</syntax>
-<default>Options All</default>
+<default>Options FollowSymlinks</default>
 <contextlist><context>server config</context><context>virtual host</context>
 <context>directory</context><context>.htaccess</context>
 </contextlist>
 <override>Options</override>
+<compatibility>The default was changed from All to FollowSymlinks in 2.3.11</compatibility>
 
 <usage>
     <p>The <directive>Options</directive> directive controls which
@@ -2571,8 +2999,7 @@ directory</description>
     <dl>
       <dt><code>All</code></dt>
 
-      <dd>All options except for <code>MultiViews</code>. This is the default
-      setting.</dd>
+      <dd>All options except for <code>MultiViews</code>.</dd>
 
       <dt><code>ExecCGI</code></dt>
 
@@ -2583,8 +3010,8 @@ directory</description>
       <dt><code>FollowSymLinks</code></dt>
 
       <dd>
-
-      The server will follow symbolic links in this directory.
+      The server will follow symbolic links in this directory. This is
+      the default setting.
       <note>
       <p>Even though the server follows the symlink it does <em>not</em>
       change the pathname used to match against <directive type="section"
@@ -2627,7 +3054,12 @@ directory</description>
       <dd>
       <a href="../content-negotiation.html">Content negotiated</a>
       "MultiViews" are allowed using
-      <module>mod_negotiation</module>.</dd>
+      <module>mod_negotiation</module>.
+      <note><title>Note</title> <p>This option gets ignored if set
+      anywhere other than <directive module="core" type="section"
+      >Directory</directive>, as <module>mod_negotiation</module>
+      needs real resources to compare against and evaluate from.</p></note>
+      </dd>
 
       <dt><code>SymLinksIfOwnerMatch</code></dt>
 
@@ -2708,14 +3140,43 @@ directory</description>
     </note>
 
     <p>The default in the absence of any other settings is
-    <code>All</code>.</p>
+    <code>FollowSymlinks</code>.</p>
 </usage>
 </directivesynopsis>
 
+<directivesynopsis>
+<name>Protocol</name>
+<description>Protocol for a listening socket</description>
+<syntax>Protocol <var>protocol</var></syntax>
+<contextlist><context>server config</context><context>virtual host</context></contextlist>
+<compatibility>Available in Apache 2.1.5 and later.
+On Windows from Apache 2.3.3 and later.</compatibility>
+
+<usage>
+    <p>This directive specifies the protocol used for a specific listening socket.
+       The protocol is used to determine which module should handle a request, and
+       to apply protocol specific optimizations with the <directive>AcceptFilter</directive>
+       directive.</p>
+
+    <p>You only need to set the protocol if you are running on non-standard ports, otherwise <code>http</code> is assumed for port 80 and <code>https</code> for port 443.</p>
+
+    <p>For example, if you are running <code>https</code> on a non-standard port, specify the protocol explicitly:</p>
+
+    <example>
+      Protocol https
+    </example>
+
+    <p>You can also specify the protocol using the <directive module="mpm_common">Listen</directive> directive.</p>
+</usage>
+<seealso><directive>AcceptFilter</directive></seealso>
+<seealso><directive module="mpm_common">Listen</directive></seealso>
+</directivesynopsis>
+
+
 <directivesynopsis>
 <name>RLimitCPU</name>
 <description>Limits the CPU consumption of processes launched
-by Apache children</description>
+by Apache httpd children</description>
 <syntax>RLimitCPU <var>seconds</var>|max [<var>seconds</var>|max]</syntax>
 <default>Unset; uses operating system defaults</default>
 <contextlist><context>server config</context><context>virtual host</context>
@@ -2732,10 +3193,10 @@ by Apache children</description>
     the server is running as <code>root</code>, or in the initial startup
     phase.</p>
 
-    <p>This applies to processes forked off from Apache children
-    servicing requests, not the Apache children themselves. This
+    <p>This applies to processes forked off from Apache httpd children
+    servicing requests, not the Apache httpd children themselves. This
     includes CGI scripts and SSI exec commands, but not any
-    processes forked off from the Apache parent such as piped
+    processes forked off from the Apache httpd parent such as piped
     logs.</p>
 
     <p>CPU resource limits are expressed in seconds per
@@ -2748,7 +3209,7 @@ by Apache children</description>
 <directivesynopsis>
 <name>RLimitMEM</name>
 <description>Limits the memory consumption of processes launched
-by Apache children</description>
+by Apache httpd children</description>
 <syntax>RLimitMEM <var>bytes</var>|max [<var>bytes</var>|max]</syntax>
 <default>Unset; uses operating system defaults</default>
 <contextlist><context>server config</context><context>virtual host</context>
@@ -2765,10 +3226,10 @@ by Apache children</description>
     the server is running as <code>root</code>, or in the initial startup
     phase.</p>
 
-    <p>This applies to processes forked off from Apache children
-    servicing requests, not the Apache children themselves. This
+    <p>This applies to processes forked off from Apache httpd children
+    servicing requests, not the Apache httpd children themselves. This
     includes CGI scripts and SSI exec commands, but not any
-    processes forked off from the Apache parent such as piped
+    processes forked off from the Apache httpd parent such as piped
     logs.</p>
 
     <p>Memory resource limits are expressed in bytes per
@@ -2781,7 +3242,7 @@ by Apache children</description>
 <directivesynopsis>
 <name>RLimitNPROC</name>
 <description>Limits the number of processes that can be launched by
-processes launched by Apache children</description>
+processes launched by Apache httpd children</description>
 <syntax>RLimitNPROC <var>number</var>|max [<var>number</var>|max]</syntax>
 <default>Unset; uses operating system defaults</default>
 <contextlist><context>server config</context><context>virtual host</context>
@@ -2798,10 +3259,10 @@ processes launched by Apache children</description>
     the server is running as <code>root</code>, or in the initial startup
     phase.</p>
 
-    <p>This applies to processes forked off from Apache children
-    servicing requests, not the Apache children themselves. This
+    <p>This applies to processes forked off from Apache httpd children
+    servicing requests, not the Apache httpd children themselves. This
     includes CGI scripts and SSI exec commands, but not any
-    processes forked off from the Apache parent such as piped
+    processes forked off from the Apache httpd parent such as piped
     logs.</p>
 
     <p>Process limits control the number of processes per user.</p>
@@ -2829,13 +3290,13 @@ scripts</description>
 <context>directory</context><context>.htaccess</context></contextlist>
 <override>FileInfo</override>
 <compatibility>Win32 only;
-option <code>Registry-Strict</code> is available in Apache 2.0 and
+option <code>Registry-Strict</code> is available in Apache HTTP Server 2.0 and
 later</compatibility>
 
 <usage>
-    <p>This directive is used to control how Apache finds the
+    <p>This directive is used to control how Apache httpd finds the
     interpreter used to run CGI scripts. The default setting is
-    <code>Script</code>. This causes Apache to use the interpreter pointed to
+    <code>Script</code>. This causes Apache httpd to use the interpreter pointed to
     by the shebang line (first line, starting with <code>#!</code>) in the
     script. On Win32 systems this line usually looks like:</p>
 
@@ -2855,14 +3316,14 @@ later</compatibility>
     search key. The command defined by the registry subkey
     <code>Shell\ExecCGI\Command</code> or, if it does not exist, by the subkey
     <code>Shell\Open\Command</code> is used to open the script file. If the
-    registry keys cannot be found, Apache falls back to the behavior of the
+    registry keys cannot be found, Apache httpd falls back to the behavior of the
     <code>Script</code> option.</p>
 
     <note type="warning"><title>Security</title>
     <p>Be careful when using <code>ScriptInterpreterSource
     Registry</code> with <directive
     module="mod_alias">ScriptAlias</directive>'ed directories, because
-    Apache will try to execute <strong>every</strong> file within this
+    Apache httpd will try to execute <strong>every</strong> file within this
     directory. The <code>Registry</code> setting may cause undesired
     program calls on files which are typically not executed. For
     example, the default open command on <code>.htm</code> files on
@@ -2873,7 +3334,7 @@ later</compatibility>
     so.</p>
     </note>
 
-    <p>The option <code>Registry-Strict</code> which is new in Apache
+    <p>The option <code>Registry-Strict</code> which is new in Apache HTTP Server
     2.0 does the same thing as <code>Registry</code> but uses only the
     subkey <code>Shell\ExecCGI\Command</code>. The
     <code>ExecCGI</code> key is not a common one. It must be
@@ -2882,6 +3343,45 @@ later</compatibility>
 </usage>
 </directivesynopsis>
 
+<directivesynopsis>
+<name>SeeRequestTail</name>
+<description>Determine if mod_status displays the first 63 characters
+of a request or the last 63, assuming the request itself is greater than
+63 chars.</description>
+<syntax>SeeRequestTail On|Off</syntax>
+<default>SeeRequestTail Off</default>
+<contextlist><context>server config</context></contextlist>
+<compatibility>Available in Apache httpd 2.2.7 and later.</compatibility>
+
+<usage>
+    <p>mod_status with <code>ExtendedStatus On</code>
+    displays the actual request being handled.
+    For historical purposes, only 63 characters of the request
+    are actually stored for display purposes. This directive
+    controls whether the 1st 63 characters are stored (the previous
+    behavior and the default) or if the last 63 characters are. This
+    is only applicable, of course, if the length of the request is
+    64 characters or greater.</p>
+
+    <p>If Apache httpd is handling <code
+    >GET&nbsp;/disk1/storage/apache/htdocs/images/imagestore1/food/apples.jpg&nbsp;HTTP/1.1</code
+    > mod_status displays as follows:
+    </p>
+
+    <table border="1">
+      <tr>
+        <th>Off (default)</th>
+        <td>GET&nbsp;/disk1/storage/apache/htdocs/images/imagestore1/food/apples</td>
+      </tr>
+      <tr>
+        <th>On</th>
+        <td>orage/apache/htdocs/images/imagestore1/food/apples.jpg&nbsp;HTTP/1.1</td>
+      </tr>
+    </table>
+
+</usage>
+</directivesynopsis>
+
 <directivesynopsis>
 <name>ServerAdmin</name>
 <description>Email address that the server includes in error
@@ -2927,14 +3427,16 @@ to name-virtual hosts</description>
 
     <example>
       &lt;VirtualHost *:80&gt;<br />
-      ServerName server.domain.com<br />
-      ServerAlias server server2.domain.com server2<br />
+      ServerName server.example.com<br />
+      ServerAlias server server2.example.com server2<br />
       ServerAlias *.example.com<br />
+      UseCanonicalName Off<br />
       # ...<br />
       &lt;/VirtualHost&gt;
     </example>
 </usage>
-<seealso><a href="../vhosts/">Apache Virtual Host documentation</a></seealso>
+<seealso><directive module="core">UseCanonicalName</directive></seealso>
+<seealso><a href="../vhosts/">Apache HTTP Server Virtual Host documentation</a></seealso>
 </directivesynopsis>
 
 <directivesynopsis>
@@ -2944,24 +3446,33 @@ itself</description>
 <syntax>ServerName [<var>scheme</var>://]<var>fully-qualified-domain-name</var>[:<var>port</var>]</syntax>
 <contextlist><context>server config</context><context>virtual host</context>
 </contextlist>
-<compatibility>In version 2.0, this
-     directive supersedes the functionality of the <directive>Port</directive>
-     directive from version 1.3.</compatibility>
 
 <usage>
     <p>The <directive>ServerName</directive> directive sets the
     request scheme, hostname and
     port that the server uses to identify itself.  This is used when
-    creating redirection URLs. For example, if the name of the
+    creating redirection URLs.</p>
+
+    <p>Additionally, <directive>ServerName</directive> is used (possibly
+    in conjunction with <directive>ServerAlias</directive>) to uniquely
+    identify a virtual host, when using <a
+    href="../vhosts/name-based.html">name-based virtual hosts</a>.</p>
+
+    <p>For example, if the name of the
     machine hosting the web server is <code>simple.example.com</code>,
     but the machine also has the DNS alias <code>www.example.com</code>
     and you wish the web server to be so identified, the following
     directive should be used:</p>
 
     <example>
-      ServerName www.example.com:80
+      ServerName www.example.com
     </example>
 
+    <p>The <directive>ServerName</directive> directive
+    may appear anywhere within the definition of a server. However,
+    each appearance overrides the previous appearance (within that
+    server).</p>
+
     <p>If no <directive>ServerName</directive> is specified, then the
     server attempts to deduce the hostname by performing a reverse
     lookup on the IP address. If no port is specified in the
@@ -2977,14 +3488,13 @@ itself</description>
     section specifies what hostname must appear in the request's
     <code>Host:</code> header to match this virtual host.</p>
 
-
     <p>Sometimes, the server runs behind a device that processes SSL,
     such as a reverse proxy, load balancer or SSL offload
     appliance. When this is the case, specify the
     <code>https://</code> scheme and the port number to which the
     clients connect in the <directive>ServerName</directive> directive
     to make sure that the server generates the correct
-    self-referential URLs. 
+    self-referential URLs.
     </p>
 
     <p>See the description of the
@@ -2995,11 +3505,22 @@ itself</description>
     specified port, or to the port number given in the client's request.
     </p>
 
+    <note type="warning">
+    <p>Failure to set <directive>ServerName</directive> to a name that
+    your server can resolve to an IP address will result in a startup
+    warning. <code>httpd</code> will then use whatever hostname it can
+    determine, using the system's <code>hostname</code> command. This
+    will almost never be the hostname you actually want.</p>
+    <example>
+    httpd: Could not reliably determine the server's fully qualified domain name, using rocinante.local for ServerName
+    </example>
+    </note>
+
 </usage>
 
 <seealso><a href="../dns-caveats.html">Issues Regarding DNS and
-    Apache</a></seealso>
-<seealso><a href="../vhosts/">Apache virtual host
+    Apache HTTP Server</a></seealso>
+<seealso><a href="../vhosts/">Apache HTTP Server virtual host
     documentation</a></seealso>
 <seealso><directive module="core">UseCanonicalName</directive></seealso>
 <seealso><directive module="core">UseCanonicalPhysicalPort</directive></seealso>
@@ -3019,7 +3540,7 @@ is accessed by an incompatible browser</description>
     URL pathname for a host, for use with <a
     href="../vhosts/">name-based virtual hosts</a>.</p>
 </usage>
-<seealso><a href="../vhosts/">Apache Virtual Host documentation</a></seealso>
+<seealso><a href="../vhosts/">Apache HTTP Server Virtual Host documentation</a></seealso>
 </directivesynopsis>
 
 <directivesynopsis>
@@ -3035,7 +3556,7 @@ is accessed by an incompatible browser</description>
     subdirectories <code>conf/</code> and <code>logs/</code>. Relative
     paths in other configuration directives (such as <directive
     module="core">Include</directive> or <directive
-    module="mod_so">LoadModule</directive>, for example) are taken as 
+    module="mod_so">LoadModule</directive>, for example) are taken as
     relative to this directory.</p>
 
     <example><title>Example</title>
@@ -3140,7 +3661,7 @@ header</description>
     <p>After version 2.0.44, this directive also controls the
     information presented by the <directive
     module="core">ServerSignature</directive> directive.</p>
-    
+
     <note>Setting <directive>ServerTokens</directive> to less than
     <code>minimal</code> is not recommended because it makes it more
     difficult to debug interoperational problems. Also note that
@@ -3161,7 +3682,7 @@ handler</description>
 <context>directory</context><context>.htaccess</context>
 </contextlist>
 <override>FileInfo</override>
-<compatibility>Moved into the core in Apache 2.0</compatibility>
+<compatibility>Moved into the core in Apache httpd 2.0</compatibility>
 
 <usage>
     <p>When placed into an <code>.htaccess</code> file or a
@@ -3274,7 +3795,7 @@ certain events before failing a request</description>
 
 <usage>
     <p>The <directive>TimeOut</directive> directive defines the length
-    of time Apache will wait for I/O in various circumstances:</p>
+    of time Apache httpd will wait for I/O in various circumstances:</p>
 
     <ol>
       <li>When reading data from the client, the length of time to
@@ -3301,12 +3822,11 @@ certain events before failing a request</description>
 
 <directivesynopsis>
 <name>TraceEnable</name>
-<description>Determines the behaviour on <code>TRACE</code>
-requests</description>
+<description>Determines the behaviour on <code>TRACE</code> requests</description>
 <syntax>TraceEnable <var>[on|off|extended]</var></syntax>
 <default>TraceEnable on</default>
 <contextlist><context>server config</context></contextlist>
-<compatibility>Available in Apache 1.3.34, 2.0.55 and later</compatibility>
+<compatibility>Available in Apache HTTP Server 1.3.34, 2.0.55 and later</compatibility>
 
 <usage>
     <p>This directive overrides the behavior of <code>TRACE</code> for both
@@ -3318,7 +3838,7 @@ requests</description>
     allowed) error to the client.</p>
 
     <p>Finally, for testing and diagnostic purposes only, request
-    bodies may be allowed using the non-compliant <code>TraceEnable 
+    bodies may be allowed using the non-compliant <code>TraceEnable
     extended</code> directive.  The core (as an origin server) will
     restrict the request body to 64k (plus 8k for chunk headers if
     <code>Transfer-Encoding: chunked</code> is used).  The core will
@@ -3327,6 +3847,21 @@ requests</description>
 </usage>
 </directivesynopsis>
 
+<directivesynopsis>
+<name>UnDefine</name>
+<description>Undefine the existence of a variable</description>
+<syntax>UnDefine <var>parameter-name</var></syntax>
+<contextlist><context>server config</context></contextlist>
+
+<usage>
+    <p>Undoes the effect of a <directive module="core">Define</directive> or
+    of passing a <code>-D</code> argument to <program>httpd</program>.</p>
+    <p>This directive can be used to toggle the use of <directive module="core"
+    type="section">IfDefine</directive> sections without needing to alter
+    <code>-D</code> arguments in any startup scripts.</p>
+</usage>
+</directivesynopsis>
+
 <directivesynopsis>
 <name>UseCanonicalName</name>
 <description>Configures how the server determines its own name and
@@ -3337,20 +3872,20 @@ port</description>
 <context>directory</context></contextlist>
 
 <usage>
-    <p>In many situations Apache must construct a <em>self-referential</em>
+    <p>In many situations Apache httpd must construct a <em>self-referential</em>
     URL -- that is, a URL that refers back to the same server. With
-    <code>UseCanonicalName On</code> Apache will use the hostname and port
+    <code>UseCanonicalName On</code> Apache httpd will use the hostname and port
     specified in the <directive module="core">ServerName</directive>
     directive to construct the canonical name for the server. This name
     is used in all self-referential URLs, and for the values of
     <code>SERVER_NAME</code> and <code>SERVER_PORT</code> in CGIs.</p>
 
-    <p>With <code>UseCanonicalName Off</code> Apache will form
+    <p>With <code>UseCanonicalName Off</code> Apache httpd will form
     self-referential URLs using the hostname and port supplied by
     the client if any are supplied (otherwise it will use the
     canonical name, as defined above). These values are the same
     that are used to implement <a
-    href="../vhosts/name-based.html">name based virtual hosts</a>,
+    href="../vhosts/name-based.html">name-based virtual hosts</a>,
     and are available with the same clients. The CGI variables
     <code>SERVER_NAME</code> and <code>SERVER_PORT</code> will be
     constructed from the client supplied values as well.</p>
@@ -3360,20 +3895,20 @@ port</description>
     names such as <code>www</code>. You'll notice that if the users
     type a shortname, and a URL which is a directory, such as
     <code>http://www/splat</code>, <em>without the trailing
-    slash</em> then Apache will redirect them to
-    <code>http://www.domain.com/splat/</code>. If you have
+    slash</em> then Apache httpd will redirect them to
+    <code>http://www.example.com/splat/</code>. If you have
     authentication enabled, this will cause the user to have to
     authenticate twice (once for <code>www</code> and once again
-    for <code>www.domain.com</code> -- see <a
+    for <code>www.example.com</code> -- see <a
     href="http://httpd.apache.org/docs/misc/FAQ.html#prompted-twice">the
     FAQ on this subject for more information</a>). But if
     <directive>UseCanonicalName</directive> is set <code>Off</code>, then
-    Apache will redirect to <code>http://www/splat/</code>.</p>
+    Apache httpd will redirect to <code>http://www/splat/</code>.</p>
 
     <p>There is a third option, <code>UseCanonicalName DNS</code>,
     which is intended for use with mass IP-based virtual hosting to
     support ancient clients that do not provide a
-    <code>Host:</code> header. With this option Apache does a
+    <code>Host:</code> header. With this option Apache httpd does a
     reverse DNS lookup on the server IP address that the client
     connected to in order to work out self-referential URLs.</p>
 
@@ -3400,14 +3935,14 @@ port</description>
 <context>directory</context></contextlist>
 
 <usage>
-    <p>In many situations Apache must construct a <em>self-referential</em>
+    <p>In many situations Apache httpd must construct a <em>self-referential</em>
     URL -- that is, a URL that refers back to the same server. With
-    <code>UseCanonicalPhysicalPort On</code> Apache will, when
+    <code>UseCanonicalPhysicalPort On</code> Apache httpd will, when
     constructing the canonical port for the server to honor
     the <directive module="core">UseCanonicalName</directive> directive,
     provide the actual physical port number being used by this request
     as a potential port. With <code>UseCanonicalPhysicalPort Off</code>
-    Apache will not ever use the actual physical port number, instead
+    Apache httpd will not ever use the actual physical port number, instead
     relying on all configured information to construct a valid port number.</p>
 
     <note><title>Note</title>
@@ -3425,7 +3960,7 @@ port</description>
       <li>Port provided in <code>Servername</code></li>
       <li>Default port</li>
      </ul>
-    
+
     <p>With <code>UseCanonicalPhysicalPort Off</code>, the
     physical ports are removed from the ordering.</p>
     </note>
@@ -3507,8 +4042,8 @@ hostname or IP address</description>
 
     <note><title>Note</title>
     <p>The use of <directive type="section">VirtualHost</directive> does
-    <strong>not</strong> affect what addresses Apache listens on. You
-    may need to ensure that Apache is listening on the correct addresses
+    <strong>not</strong> affect what addresses Apache httpd listens on. You
+    may need to ensure that Apache httpd is listening on the correct addresses
     using <directive module="mpm_common">Listen</directive>.</p>
     </note>
 
@@ -3533,6 +4068,11 @@ hostname or IP address</description>
     <directive module="core">ServerName</directive> from the "main"
     server configuration will be inherited.</p>
 
+    <p>If no matching virtual host is found, then the first listed
+    virtual host that matches the IP address will be used.  As a
+    consequence, the first listed virtual host is the default virtual
+    host.</p>
+
     <note type="warning"><title>Security</title>
     <p>See the <a href="../misc/security_tips.html">security tips</a>
     document for details on why your security could be compromised if the
@@ -3540,11 +4080,11 @@ hostname or IP address</description>
     than the user that starts the server.</p>
     </note>
 </usage>
-<seealso><a href="../vhosts/">Apache Virtual Host documentation</a></seealso>
+<seealso><a href="../vhosts/">Apache HTTP Server Virtual Host documentation</a></seealso>
 <seealso><a href="../dns-caveats.html">Issues Regarding DNS and
-    Apache</a></seealso>
+    Apache HTTP Server</a></seealso>
 <seealso><a href="../bind.html">Setting
-    which addresses and ports Apache uses</a></seealso>
+    which addresses and ports Apache HTTP Server uses</a></seealso>
 <seealso><a href="../sections.html">How &lt;Directory&gt;, &lt;Location&gt;
     and &lt;Files&gt; sections work</a> for an explanation of how these
     different sections are combined when a request is received</seealso>