From 364b8370282187a1dcbf721ebccb41cf2e178a1f Mon Sep 17 00:00:00 2001
From: Andre Malo
In order to support advanced techniques (such as Cookies or
+ special URL-paths) to determine the user's preferred language,
+ since Apache 2.1 mod_negotiation
recognizes
+ the environment variable
+ prefer-language
. If it exists and contains an
+ appropriate language tag, mod_negotiation
will
+ try to select a matching variant. If there's no such variant,
+ the normal negotiation process applies.
+ SetEnvIf Cookie "language=(.+)" prefer-language=$1
+
In order to support advanced techniques (such as Cookies or
+ special URL-paths) to determine the user's preferred language,
+ since Apache 2.1 prefer-language
. If it exists and contains an
+ appropriate language tag,
BrowserMatch
,
- though SetEnv
and
- PassEnv
could also be used,
- for example.
+ typically with BrowserMatch
, though SetEnv
and PassEnv
could also be used, for example.
This disables KeepAlive
when set.
This disables KeepAlive
+ when set.
This influences mod_negotiation
's behaviour. If
+ it contains a language tag (such as en
, ja
+ or x-klingon
), mod_negotiation
tries
+ to deliver a variant with that language. If there's no such variant,
+ the normal negotiation process
+ applies.
This disables
This disables
This influences en
, ja
+ or x-klingon
),
In the first form, the value will be set to "1". The second
will remove the given variable if already defined, and the
third will set the variable to the literal value given by
- value
.
value
. Since version 2.1 Apache will
+ recognize occurrences of $1
..$9
within
+ value and replace them by parenthesized subexpressions
+ of regex.
diff --git a/docs/manual/mod/mod_setenvif.xml b/docs/manual/mod/mod_setenvif.xml
index 3bc75e79e6..a81ff3db28 100644
--- a/docs/manual/mod/mod_setenvif.xml
+++ b/docs/manual/mod/mod_setenvif.xml
@@ -189,7 +189,10 @@ of
In the first form, the value will be set to "1". The second
will remove the given variable if already defined, and the
third will set the variable to the literal value given by
- value
.
value
. Since version 2.1 Apache will
+ recognize occurrences of $1
..$9
within
+ value and replace them by parenthesized subexpressions
+ of regex.