summaryrefslogtreecommitdiff
path: root/docs/manual/mod/mod_substitute.html.en
diff options
context:
space:
mode:
Diffstat (limited to 'docs/manual/mod/mod_substitute.html.en')
-rw-r--r--docs/manual/mod/mod_substitute.html.en14
1 files changed, 10 insertions, 4 deletions
diff --git a/docs/manual/mod/mod_substitute.html.en b/docs/manual/mod/mod_substitute.html.en
index 61e3f41172..8a09e78aa5 100644
--- a/docs/manual/mod/mod_substitute.html.en
+++ b/docs/manual/mod/mod_substitute.html.en
@@ -95,8 +95,14 @@
&lt;/Location&gt;</pre>
</div>
+ <p>The character which is used to separate (or "delimit") the
+ various parts of the substituion string is referred to as the
+ "delimiter", and it is most common to use a slash for this
+ purpose.</p>
+
<p>If either the pattern or the substitution contain a slash
- character then an alternative delimiter should be used:</p>
+ character then an alternative delimiter may be used to make the
+ directive more readable:</p>
<div class="example"><h3>Example of using an alternate delimiter</h3><pre class="prettyprint lang-config">&lt;Location "/"&gt;
AddOutputFilterByType SUBSTITUTE text/html
@@ -109,7 +115,7 @@
<div class="example"><h3>Example of using backreferences and captures</h3><pre class="prettyprint lang-config">&lt;Location "/"&gt;
AddOutputFilterByType SUBSTITUTE text/html
# "foo=k,bar=k" -&gt; "foo/bar=k"
- Substitute "s|foo=(\w+),bar=\1|foo/bar=$1"
+ Substitute "s|foo=(\w+),bar=\1|foo/bar=$1|"
&lt;/Location&gt;</pre>
</div>
@@ -122,7 +128,7 @@
<p>In this case, <code>mod_substitute</code> can be used to rewrite
those URLs into something that will work from the front end:</p>
- <div class="example"><h3>Rewriting URLs embedded in proxied content</h3><pre class="prettyprint lang-config">ProxyPass "/blog/" "http://internal.blog.example.com"
+ <div class="example"><h3>Rewriting URLs embedded in proxied content</h3><pre class="prettyprint lang-config">ProxyPass "/blog/" "http://internal.blog.example.com/"
ProxyPassReverse "/blog/" "http://internal.blog.example.com/"
Substitute "s|http://internal.blog.example.com/|http://www.example.com/blog/|i"</pre>
@@ -209,7 +215,7 @@ var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_substitute.h
}
})(window, document);
//--><!]]></script></div><div id="footer">
-<p class="apache">Copyright 2017 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
+<p class="apache">Copyright 2018 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
if (typeof(prettyPrint) !== 'undefined') {
prettyPrint();