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:05:25 UTC
svn commit: r1668874 -
/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml
Author: covener
Date: Tue Mar 24 13:05:25 2015
New Revision: 1668874
URL: http://svn.apache.org/r1668874
Log:
tweak version # (doc got backported prematurely) and fix typos.
Modified:
httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml
Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml?rev=1668874&r1=1668873&r2=1668874&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml Tue Mar 24 13:05:25 2015
@@ -260,8 +260,22 @@ later</compatibility>
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 <directive module="mod_rewrite"
+ >RewriteBase</directive> 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
+ <module>mod_userdir</module> and <module>mod_alias</module>
+ 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>
</usage>
</directivesynopsis>
@@ -381,6 +395,10 @@ later</compatibility>
<directive>RewriteRule</directive>, 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
+ <directive module="mod_alias">Alias</directive>
+ or <module>mod_userdir</module>.</li>
</ul>
<p> In the example below, <directive>RewriteBase</directive> is necessary
@@ -390,13 +408,14 @@ later</compatibility>
directory under the document root.</p>
<highlight language="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/
RewriteRule ^index\.html$ welcome.html
</Directory>
</highlight>
+
</usage>
</directivesynopsis>