You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by no...@apache.org on 2007/09/02 18:00:04 UTC

svn commit: r572011 - /httpd/httpd/trunk/docs/manual/mod/core.xml

Author: noodl
Date: Sun Sep  2 09:00:03 2007
New Revision: 572011

URL: http://svn.apache.org/viewvc?rev=572011&view=rev
Log:
Document the new Define directive added in r546651

Modified:
    httpd/httpd/trunk/docs/manual/mod/core.xml

Modified: httpd/httpd/trunk/docs/manual/mod/core.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/core.xml?rev=572011&r1=572010&r2=572011&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/core.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/core.xml Sun Sep  2 09:00:03 2007
@@ -565,6 +565,21 @@
 </usage>
 </directivesynopsis>
 
+<directivesynopsis>
+<name>Define</name>
+<description>Define the existence of a variable</description>
+<syntax>Define <var>parameter-name</var></syntax>
+<contextlist><context>server config</context></contextlist>
+
+<usage>
+    <p>Equivalent to passing the <code>-D</code> argument to <a
+    href="../programs/httpd.html">httpd</a>.</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 type="section">
 <name>Directory</name>
 <description>Enclose a group of directives that apply only to the
@@ -1305,9 +1320,10 @@
     the test, and only processes the directives if
     <var>parameter-name</var> is <strong>not</strong> defined.</p>
 
-    <p>The <var>parameter-name</var> argument is a define as given on
-    the <program>httpd</program> command line via <code>-D<var>parameter-</var>
-    </code>, at the time the server was started.</p>
+    <p>The <var>parameter-name</var> argument is a define as given on the
+    <program>httpd</program> command line via <code>-D<var>parameter</var>
+    </code> at the time the server was started or by the <directive
+    module="core">Define</directive> directive.</p>
 
     <p><directive type="section">IfDefine</directive> sections are
     nest-able, which can be used to implement simple