]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_macro: Fix Tips example to use $() instead of ${} to avoid conflict with Define...
authorRich Bowen <rbowen@apache.org>
Wed, 29 Apr 2026 14:42:52 +0000 (14:42 +0000)
committerRich Bowen <rbowen@apache.org>
Wed, 29 Apr 2026 14:42:52 +0000 (14:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933496 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_macro.xml

index a2d3fada1fbd09157e56959884302a81bc5d7134..5699e4d77e54c8ee1335e3d9708f207ba2bd3729 100644 (file)
@@ -112,11 +112,14 @@ cause confusion at expression evaluation time. In the event of such
 confusion, the longest possible parameter name is used.</p>
 
 <p>If you want to use a value within another string, it is useful to
-surround the parameter in braces, to avoid confusion:</p>
+surround the parameter in parentheses, to avoid confusion. The
+<code>$(...)</code> syntax should be used rather than
+<code>${...}</code>, as the latter conflicts with the
+<directive module="core">Define</directive> variable syntax:</p>
 
 <highlight language="config">
-&lt;Macro DocRoot ${docroot}&gt;
-    DocumentRoot "/var/www/${docroot}/htdocs"
+&lt;Macro DocRoot $(docroot)&gt;
+    DocumentRoot "/var/www/$(docroot)/htdocs"
 &lt;/Macro&gt;
 </highlight>