]> granicus.if.org Git - apache/commitdiff
Document the new Define directive added in r546651
authorVincent Bray <noodl@apache.org>
Sun, 2 Sep 2007 16:00:03 +0000 (16:00 +0000)
committerVincent Bray <noodl@apache.org>
Sun, 2 Sep 2007 16:00:03 +0000 (16:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@572011 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/core.xml

index c623b7a8643f58d16712bd3dd8ea52cd50073810..19dbf3d2652c6b7df108337e2a23281a329aec72 100644 (file)
@@ -565,6 +565,21 @@ server cannot determine a type in any other way</description>
 </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 @@ if a test is true at startup</description>
     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