summaryrefslogtreecommitdiff
path: root/docs/manual/mod/mod_rewrite.html.en
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2017-06-05 12:13:24 +0000
committerEric Covener <covener@apache.org>2017-06-05 12:13:24 +0000
commitcb9317646a5e3a6ad6bf97d078a5382b45cf95a4 (patch)
treed942a4a8671058c1d18c6379c529ecfedddd6060 /docs/manual/mod/mod_rewrite.html.en
parentd98d3a43c65477216db43998082608c6935ab08b (diff)
downloadhttpd-cb9317646a5e3a6ad6bf97d078a5382b45cf95a4.tar.gz
xforms
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1797654 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_rewrite.html.en')
-rw-r--r--docs/manual/mod/mod_rewrite.html.en18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en
index d759a6e10d..2cc6eeb613 100644
--- a/docs/manual/mod/mod_rewrite.html.en
+++ b/docs/manual/mod/mod_rewrite.html.en
@@ -1013,6 +1013,24 @@ RewriteRule "^/$" "/homepage.std.html" [L]</pre>
supply this extended context info. Available in 2.4.16 and later.</p>
</dd>
+
+ <dt><code>LegacyPrefixDocRoot</code></dt>
+ <dd>
+
+ <p>Prior to 2.4.25, if a substitution was an absolute URL that matched
+ the current virtual host, the URL might first be reduced to a URL-path
+ and then later reduced to a local path. Since the URL can be reduced
+ to a local path, the path should be prefixed with the document root.
+ This prevents a file such as /tmp/myfile from being accessed when a
+ request is made to http://host/file/myfile with the following
+ <code class="directive"><a href="#rewriterule">RewriteRule</a></code>.</p>
+ <pre class="prettyprint lang-config">RewriteRule /file/(.*) http://localhost/tmp/$1</pre>
+
+ <p>This option allows the old behavior to be used where the document
+ root is not prefixed to a local path that was reduced from a
+ URL. Available in 2.4.25 and later.</p>
+ </dd>
+
</dl>
</div>