summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2010-11-08 13:15:17 +0000
committerJeff Trawick <trawick@apache.org>2010-11-08 13:15:17 +0000
commit66e4cc46767585749277c58684d5ddd3b1586af1 (patch)
tree79896e3f7c989ba0badd63b0b077276e2d302b6f /docs
parent3aecbb05432840ea4131a573040cd9661dc8578a (diff)
downloadhttpd-66e4cc46767585749277c58684d5ddd3b1586af1.tar.gz
Add Error directive for aborting startup or htaccess processing
with a specified error message. Be nice and strip off any quotes, which aren't necessary. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1032565 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs')
-rw-r--r--docs/manual/mod/core.xml37
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml
index 878ecea993..c2bbd8ab4c 100644
--- a/docs/manual/mod/core.xml
+++ b/docs/manual/mod/core.xml
@@ -890,6 +890,43 @@ version 2.3.9.</compatibility>
</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
in case of an error</description>