<p>The <code class="directive">ErrorLog</code> directive sets the name of
the file to which the server will log any errors it encounters. If
the <var>file-path</var> does not begin with a slash (/) then it is
- assumed to be relative to the <code class="directive"><a href="#serverroot">ServerRoot</a></code>. If the <var>file-path</var>
+ assumed to be relative to the <code class="directive"><a href="#serverroot">ServerRoot</a></code>.</p>
+
+ <div class="example"><h3>Example</h3><p><code>
+ ErrorLog /var/log/httpd/error_log
+ </code></p></div>
+
+ <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>
+ <div class="example"><h3>Example</h3><p><code>
+ ErrorLog "|/usr/local/bin/httpd_errors"
+ </code></p></div>
+
<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
<var>facility</var> can be one of the names usually documented in
syslog(1).</p>
+ <div class="example"><h3>Example</h3><p><code>
+ ErrorLog syslog:user
+ </code></p></div>
+
<p>SECURITY: See the <a href="../misc/security_tips.html#serverroot">security tips</a>
document for details on why your security could be compromised
if the directory where logfiles are stored is writable by
the file to which the server will log any errors it encounters. If
the <var>file-path</var> does not begin with a slash (/) then it is
assumed to be relative to the <directive
- module="core">ServerRoot</directive>. If the <var>file-path</var>
+ module="core">ServerRoot</directive>.</p>
+
+ <example><title>Example</title>
+ ErrorLog /var/log/httpd/error_log
+ </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>
+ <example><title>Example</title>
+ ErrorLog "|/usr/local/bin/httpd_errors"
+ </example>
+
<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
<var>facility</var> can be one of the names usually documented in
syslog(1).</p>
+ <example><title>Example</title>
+ ErrorLog syslog:user
+ </example>
+
<p>SECURITY: See the <a
href="../misc/security_tips.html#serverroot">security tips</a>
document for details on why your security could be compromised