From: Christophe Jaillet Date: Tue, 9 Jun 2015 05:08:20 +0000 (+0000) Subject: Add compatibility note. X-Git-Tag: 2.5.0-alpha~3094 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f385894c28b3734d074862c71183a2052a24468;p=apache Add compatibility note. Turn some tabs into space. Remove some useless
in blocks. (this was causing some additionnal blank lines at the end of some examples) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1684313 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_alias.xml b/docs/manual/mod/mod_alias.xml index f967aebe6c..c0b68045ec 100644 --- a/docs/manual/mod/mod_alias.xml +++ b/docs/manual/mod/mod_alias.xml @@ -54,7 +54,7 @@ or LocationMatch section, expression syntax can be used to manipulate the destination path or URL. -

+

mod_alias is designed to handle simple URL manipulation tasks. For more complicated tasks such as @@ -182,7 +182,8 @@ Alias "/image" "/ftp/pub/image" Location or LocationMatch section the URL-path is omitted, and the file-path is interpreted - using expression syntax.

+ using expression syntax.
+ This syntax is available in Apache 2.4.13 and later.

<Location "/image"> @@ -275,7 +276,7 @@ AliasMatch "^/image/(.*)$" "/ftp/pub/image/$1" serve different kinds of files from different directories:

-AliasMatch "^/image/(.*)\.jpg$" "/files/jpg.images/$1.jpg"
+AliasMatch "^/image/(.*)\.jpg$" "/files/jpg.images/$1.jpg" AliasMatch "^/image/(.*)\.gif$" "/files/gif.images/$1.gif"
@@ -325,12 +326,12 @@ Redirect "/one" "/two"

If the client requests http://example.com/service/foo.txt, it will be told to access http://foo2.example.com/service/foo.txt - instead. This includes requests with GET parameters, such as + instead. This includes requests with GET parameters, such as http://example.com/service/foo.pl?q=23&a=42, it will be redirected to http://foo2.example.com/service/foo.pl?q=23&a=42. - Note that POSTs will be discarded.
- Only complete path segments are matched, so the above + Note that POSTs will be discarded.
+ Only complete path segments are matched, so the above example would not match a request for http://example.com/servicefoo.txt. For more complex matching using the expression syntax, omit the URL-path @@ -390,18 +391,19 @@ Redirect 303 "/three" "http://example.com/other" Location or LocationMatch section with the URL-path omitted, then the URL parameter will be - interpreted using expression syntax.

+ interpreted using expression syntax.
+ This syntax is available in Apache 2.4.13 and later.

<Location "/one"> Redirect permanent "http://example.com/two" -</Location>
+</Location> <Location "/three"> Redirect 303 "http://example.com/other" -</Location>
+</Location> <LocationMatch "/error/(?<NUMBER>[0-9]+)"> Redirect permanent "http://example.com/errors/%{env:MATCH_NUMBER}.html" -</LocationMatch>
+</LocationMatch>
@@ -512,12 +514,12 @@ Alias "/cgi-bin/" "/web/cgi-bin/" </Location>
-

ScriptAlias can also be used in conjunction with - a script or handler you have. For example:

+

ScriptAlias can also be used in conjunction with + a script or handler you have. For example:

- + ScriptAlias "/cgi-bin/" "/web/cgi-handler.pl" - +

In this scenario all files requested in /cgi-bin/ 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-handler.pl" a Location or LocationMatch section with the URL-path omitted, then the URL parameter will be - interpreted using expression syntax.

+ interpreted using expression syntax.
+ This syntax is available in Apache 2.4.13 and later.

<Location "/cgi-bin"> @@ -560,7 +563,7 @@ ScriptAlias "/cgi-bin/" "/web/cgi-handler.pl" </Location> <LocationMatch "/cgi-bin/errors/(?<NUMBER>[0-9]+)"> ScriptAlias "/web/cgi-bin/errors/%{env:MATCH_NUMBER}.cgi" -</LocationMatch>
+</LocationMatch>