You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2015/06/09 07:08:21 UTC
svn commit: r1684313 - /httpd/httpd/trunk/docs/manual/mod/mod_alias.xml
Author: jailletc36
Date: Tue Jun 9 05:08:20 2015
New Revision: 1684313
URL: http://svn.apache.org/r1684313
Log:
Add compatibility note.
Turn some tabs into space.
Remove some useless <br /> in <highlight> blocks. (this was causing some additionnal blank lines at the end of some examples)
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_alias.xml
Modified: httpd/httpd/trunk/docs/manual/mod/mod_alias.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_alias.xml?rev=1684313&r1=1684312&r2=1684313&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_alias.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_alias.xml Tue Jun 9 05:08:20 2015
@@ -54,7 +54,7 @@
or <directive type="section" module="core">LocationMatch</directive>
section, <a href="../expr.html">expression syntax</a> can be used
to manipulate the destination path or URL.
- </p>
+ </p>
<p><module>mod_alias</module> is designed to handle simple URL
manipulation tasks. For more complicated tasks such as
@@ -182,7 +182,8 @@ Alias "/image" "/ftp/pub/image"
<directive type="section" module="core">Location</directive>
or <directive type="section" module="core">LocationMatch</directive>
section the URL-path is omitted, and the file-path is interpreted
- using <a href="../expr.html">expression syntax</a>.</p>
+ using <a href="../expr.html">expression syntax</a>.<br />
+ This syntax is available in Apache 2.4.13 and later.</p>
<highlight language="config">
<Location "/image">
@@ -275,7 +276,7 @@ AliasMatch "^/image/(.*)$" "/ftp/pub/ima
serve different kinds of files from different directories:</p>
<highlight language="config">
-AliasMatch "^/image/(.*)\.jpg$" "/files/jpg.images/$1.jpg"<br/>
+AliasMatch "^/image/(.*)\.jpg$" "/files/jpg.images/$1.jpg"
AliasMatch "^/image/(.*)\.gif$" "/files/gif.images/$1.gif"
</highlight>
@@ -325,12 +326,12 @@ Redirect "/one" "/two"
<p>If the client requests <code>http://example.com/service/foo.txt</code>,
it will be told to access
<code>http://foo2.example.com/service/foo.txt</code>
- instead. This includes requests with <code>GET</code> parameters, such as
+ instead. This includes requests with <code>GET</code> parameters, such as
<code>http://example.com/service/foo.pl?q=23&a=42</code>,
it will be redirected to
<code>http://foo2.example.com/service/foo.pl?q=23&a=42</code>.
- Note that <code>POST</code>s will be discarded.<br />
- Only complete path segments are matched, so the above
+ Note that <code>POST</code>s will be discarded.<br />
+ Only complete path segments are matched, so the above
example would not match a request for
<code>http://example.com/servicefoo.txt</code>. For more complex matching
using the <a href="../expr.html">expression syntax</a>, omit the URL-path
@@ -390,18 +391,19 @@ Redirect 303 "/three" "http://example.co
<directive type="section" module="core">Location</directive>
or <directive type="section" module="core">LocationMatch</directive>
section with the URL-path omitted, then the URL parameter will be
- interpreted using <a href="../expr.html">expression syntax</a>.</p>
+ interpreted using <a href="../expr.html">expression syntax</a>.<br />
+ This syntax is available in Apache 2.4.13 and later.</p>
<highlight language="config">
<Location "/one">
Redirect permanent "http://example.com/two"
-</Location><br />
+</Location>
<Location "/three">
Redirect 303 "http://example.com/other"
-</Location><br />
+</Location>
<LocationMatch "/error/(?<NUMBER>[0-9]+)">
Redirect permanent "http://example.com/errors/%{env:MATCH_NUMBER}.html"
-</LocationMatch><br />
+</LocationMatch>
</highlight>
</usage>
@@ -512,12 +514,12 @@ Alias "/cgi-bin/" "/web/cgi-bin/"
</Location>
</highlight>
- <p><directive>ScriptAlias</directive> can also be used in conjunction with
- a script or handler you have. For example:</p>
+ <p><directive>ScriptAlias</directive> can also be used in conjunction with
+ a script or handler you have. For example:</p>
- <highlight language="config">
+ <highlight language="config">
ScriptAlias "/cgi-bin/" "/web/cgi-handler.pl"
- </highlight>
+ </highlight>
<p>In this scenario all files requested in <code>/cgi-bin/</code> will be
handled by the file you have configured, this allows you to use your own custom
@@ -552,7 +554,8 @@ ScriptAlias "/cgi-bin/" "/web/cgi-handle
a <directive type="section" module="core">Location</directive>
or <directive type="section" module="core">LocationMatch</directive>
section with the URL-path omitted, then the URL parameter will be
- interpreted using <a href="../expr.html">expression syntax</a>.</p>
+ interpreted using <a href="../expr.html">expression syntax</a>.<br />
+ This syntax is available in Apache 2.4.13 and later.</p>
<highlight language="config">
<Location "/cgi-bin">
@@ -560,7 +563,7 @@ ScriptAlias "/cgi-bin/" "/web/cgi-handle
</Location>
<LocationMatch "/cgi-bin/errors/(?<NUMBER>[0-9]+)">
ScriptAlias "/web/cgi-bin/errors/%{env:MATCH_NUMBER}.cgi"
-</LocationMatch><br />
+</LocationMatch>
</highlight>
</usage>