You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2025/12/18 12:56:03 UTC

svn commit: r1930711 - in httpd/httpd/branches/2.4.x: . docs/manual/mod

Author: jorton
Date: Thu Dec 18 12:56:03 2025
New Revision: 1930711

Log:
Merge r1915443, r1915459 from trunk: [docs only]

Clarifies advice around quoting regular expressions.

Submitted by: nisbet-hubbard <87...@users.noreply.github.com>

Remove redundant slash from example - mod_proxy doc

Submitted by: nisbet-hubbard <87...@users.noreply.github.com>

Submitted by: rbowen
Github: closes #463

Modified:
   httpd/httpd/branches/2.4.x/   (props changed)
   httpd/httpd/branches/2.4.x/docs/manual/mod/mod_proxy.html.en
   httpd/httpd/branches/2.4.x/docs/manual/mod/mod_proxy.xml
   httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.html.en
   httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml
   httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.html.en
   httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.xml

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_proxy.html.en
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_proxy.html.en	Thu Dec 18 12:50:42 2025	(r1930710)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_proxy.html.en	Thu Dec 18 12:56:03 2025	(r1930711)
@@ -2191,4 +2191,4 @@ if (typeof(prettyPrint) !== 'undefined')
     prettyPrint();
 }
 //--><!]]></script>
-</body></html>
\ No newline at end of file
+</body></html>

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_proxy.xml
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_proxy.xml	Thu Dec 18 12:50:42 2025	(r1930710)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_proxy.xml	Thu Dec 18 12:56:03 2025	(r1930711)
@@ -191,7 +191,7 @@ ProxyPass "/some/ws/capable/path/" "http
       <highlight language="config">
 &lt;FilesMatch "\.php$"&gt;
     # Unix sockets require 2.4.7 or later
-    SetHandler  "proxy:unix:/path/to/app.sock|fcgi://localhost/"
+    SetHandler  "proxy:unix:/path/to/app.sock|fcgi://localhost"
 &lt;/FilesMatch&gt;
       </highlight>
       </example>

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.html.en
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.html.en	Thu Dec 18 12:50:42 2025	(r1930710)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.html.en	Thu Dec 18 12:56:03 2025	(r1930711)
@@ -1641,4 +1641,4 @@ if (typeof(prettyPrint) !== 'undefined')
     prettyPrint();
 }
 //--><!]]></script>
-</body></html>
\ No newline at end of file
+</body></html>

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml	Thu Dec 18 12:50:42 2025	(r1930710)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml	Thu Dec 18 12:56:03 2025	(r1930711)
@@ -49,6 +49,9 @@ URLs on the fly</description>
       sub-processing, external request redirection, or internal proxy
       throughput.</p>
 
+      <p>A regular expression only needs quoting if it contains unescaped space, 
+      in which case single and double quotes are equivalent.</p>
+
       <p>Further details, discussion, and examples, are provided in the
       <a href="../rewrite/">detailed mod_rewrite documentation</a>.</p>
 </summary>

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.html.en
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.html.en	Thu Dec 18 12:50:42 2025	(r1930710)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.html.en	Thu Dec 18 12:56:03 2025	(r1930711)
@@ -359,4 +359,4 @@ if (typeof(prettyPrint) !== 'undefined')
     prettyPrint();
 }
 //--><!]]></script>
-</body></html>
\ No newline at end of file
+</body></html>

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.xml
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.xml	Thu Dec 18 12:50:42 2025	(r1930710)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_setenvif.xml	Thu Dec 18 12:56:03 2025	(r1930711)
@@ -59,6 +59,13 @@ BrowserMatch MSIE !netscape
    are not separately evaluated in the subrequest due to the API phases
    <module>mod_setenvif</module> takes action in.</p>
 
+   <p>A regular expression only needs quoting when it contains space, 
+   in which case single and double quotes are equivalent. Unlike 
+   <module>mod_rewrite</module>, <module>mod_setenvif</module> strips every 
+   other backslash when parsing the expression; thus <code>\\</code> 
+   requires <code>\\\</code>, and <code>\\\</code> requires 
+   <code>\\\\\</code>.</p>
+
 </summary>
 
 <seealso><a href="../env.html">Environment Variables in Apache HTTP Server</a></seealso>