You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2015/03/24 14:06:47 UTC
svn commit: r1668877 -
/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.html.en
Author: covener
Date: Tue Mar 24 13:06:47 2015
New Revision: 1668877
URL: http://svn.apache.org/r1668877
Log:
xforms
Modified:
httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.html.en
Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.html.en?rev=1668877&r1=1668876&r2=1668877&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.html.en (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.html.en Tue Mar 24 13:06:47 2015
@@ -130,6 +130,10 @@ URLs on the fly</td></tr>
<code class="directive">RewriteRule</code>, suffixed by the relative
substitution is also valid as a URL path on the server
(this is rare).</li>
+ <li> In Apache HTTP Server 2.4.13 and later, this directive may be
+ omitted when the request is mapped via
+ <code class="directive"><a href="../mod/mod_alias.html#alias">Alias</a></code>
+ or <code class="module"><a href="../mod/mod_userdir.html">mod_userdir</a></code>.</li>
</ul>
<p> In the example below, <code class="directive">RewriteBase</code> is necessary
@@ -138,7 +142,7 @@ URLs on the fly</td></tr>
misconfiguration would normally cause the server to look for an "opt"
directory under the document root.</p>
<pre class="prettyprint lang-config">DocumentRoot /var/www/example.com
-Alias /myapp /opt/myapp-1.2.3
+AliasMatch ^/myapp /opt/myapp-1.2.3
<Directory /opt/myapp-1.2.3>
RewriteEngine On
RewriteBase /myapp/
@@ -146,6 +150,7 @@ Alias /myapp /opt/myapp-1.2.3
</Directory></pre>
+
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="RewriteCond" id="RewriteCond">RewriteCond</a> <a name="rewritecond" id="rewritecond">Directive</a></h2>
@@ -965,8 +970,21 @@ later</td></tr>
default behavior in 2.4.0 through 2.4.3, and the flag to restore it is
available Apache HTTP Server 2.4.4 and later.</p>
</dd>
- </dl>
+ <dt><code>IgnoreContextInfo</code></dt>
+ <dd>
+
+ <p>In versions 2.4.13 and later, when a relative substitution is made
+ in directory (htaccess) context and <code class="directive"><a href="#rewritebase">RewriteBase</a></code> has not been set, this module uses some
+ extended URL and filesystem context information to change the
+ relative substitution back into a URL. Modules such as
+ <code class="module"><a href="../mod/mod_userdir.html">mod_userdir</a></code> and <code class="module"><a href="../mod/mod_alias.html">mod_alias</a></code>
+ supply this extended context info. This option disables the behavior
+ introduced in 2.4.13 and should only be set if all of the conditions
+ above are present and a substituion has an unexpected result. </p>
+ </dd>
+
+ </dl>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>