Clarifies advice around quoting regular expressions.
Submitted by: nisbet-hubbard <
87453615+nisbet-hubbard@users.noreply.github.com>
Remove redundant slash from example - mod_proxy doc
Submitted by: nisbet-hubbard <
87453615+nisbet-hubbard@users.noreply.github.com>
Submitted by: rbowen
Github: closes #463
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1930711 13f79535-47bb-0310-9956-
ffa450edef68
prettyPrint();
}
//--><!]]></script>
-</body></html>
\ No newline at end of file
+</body></html>
<highlight language="config">
<FilesMatch "\.php$">
# 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"
</FilesMatch>
</highlight>
</example>
prettyPrint();
}
//--><!]]></script>
-</body></html>
\ No newline at end of file
+</body></html>
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>
prettyPrint();
}
//--><!]]></script>
-</body></html>
\ No newline at end of file
+</body></html>
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>