You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jk...@apache.org on 2014/04/16 13:51:43 UTC

svn commit: r1587881 - /httpd/httpd/branches/2.4.x/docs/manual/mod/core.xml

Author: jkaluza
Date: Wed Apr 16 11:51:42 2014
New Revision: 1587881

URL: http://svn.apache.org/r1587881
Log:
core.xml: document Warning directive

Modified:
    httpd/httpd/branches/2.4.x/docs/manual/mod/core.xml

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/core.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/core.xml?rev=1587881&r1=1587880&r2=1587881&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/core.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/core.xml Wed Apr 16 11:51:42 2014
@@ -1174,6 +1174,7 @@ version 2.3.9.</compatibility>
     </highlight>
 
 </usage>
+<seealso><directive module="core">Warning</directive></seealso>
 </directivesynopsis>
 
 <directivesynopsis>
@@ -4431,4 +4432,29 @@ hostname or IP address</description>
     different sections are combined when a request is received</seealso>
 </directivesynopsis>
 
+<directivesynopsis>
+<name>Warning</name>
+<description>Show custom warning message</description>
+<syntax>Warning <var>message</var></syntax>
+<contextlist><context>server config</context><context>virtual host</context>
+<context>directory</context><context>.htaccess</context>
+</contextlist>
+<compatibility>2.5.0 and later</compatibility>
+
+<usage>
+    <p>If an warning can be detected within the configuration, this
+    directive can be used to generate a custom warning message.</p>
+
+    <highlight language="config">
+# Example
+# show warning if mod_include is not loaded
+&lt;IfModule !include_module&gt;
+  Warning "mod_include is required by mod_foo. mod_foo will not be loaded"
+&lt;/IfModule&gt;
+    </highlight>
+
+</usage>
+<seealso><directive module="core">Error</directive></seealso>
+</directivesynopsis>
+
 </modulesynopsis>