From: Rich Bowen Date: Sat, 11 May 2013 16:08:23 +0000 (+0000) Subject: The use of "might" can leave some confusion as to whether it *is*. X-Git-Tag: 2.5.0-alpha~5468 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9db6991cb0d08854168c3d301d54cba5359525fb;p=apache The use of "might" can leave some confusion as to whether it *is*. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1481364 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/rewritemap.xml b/docs/manual/rewrite/rewritemap.xml index 888da63eb9..a403f541ac 100644 --- a/docs/manual/rewrite/rewritemap.xml +++ b/docs/manual/rewrite/rewritemap.xml @@ -82,7 +82,7 @@ configuration. substituted by DefaultValue or by the empty string if no DefaultValue was specified.

-

For example, you might define a +

For example, you can define a RewriteMap as:

RewriteMap examplemap txt:/path/to/file/map.txt

You would then be able to use this map in a @@ -162,20 +162,19 @@ RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R] per line. Optionally, a line may be contain a comment, starting with a '#' character.

-

For example, the following might be valid entries in a map - file.

+

A valid text rewrite map file will have the following syntax:

-

+ # Comment line
MatchingKey SubstValue
MatchingKey SubstValue # comment
-

+

When the RewriteMap is invoked the argument is looked for in the first argument of a line, and, if found, the substitution value is returned.

-

For example, we might use a mapfile to translate product names to +

For example, we can use a mapfile to translate product names to product IDs for easier-to-remember URLs, using the following recipe:

Product to ID configuration

@@ -234,7 +233,7 @@ telephone 328 One of these values will be chosen at random if the key is matched.

-

For example, you might use the following map +

For example, you can use the following map file and directives to provide a random load balancing between several back-end servers, via a reverse-proxy. Images are sent to one of the servers in the 'static' pool, while everything