From: Astrid Malo
Date: Tue, 27 May 2003 21:41:30 +0000 (+0000)
Subject: prefer-language is available at 2.0.46 and later [if not, I'll change this
X-Git-Tag: 2.0.46~5
X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=190f3f6ccfc747c8f746d5a5907793e58a29dd36;p=thirdparty%2Fapache%2Fhttpd.git
prefer-language is available at 2.0.46 and later [if not, I'll change this
to 2.0.47 later]
use a running example (capture of subexpressions is avaiable in mod_envif
at 2.1)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@100051 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/content-negotiation.html.en b/docs/manual/content-negotiation.html.en
index 82ad3336487..937af9647f5 100644
--- a/docs/manual/content-negotiation.html.en
+++ b/docs/manual/content-negotiation.html.en
@@ -482,7 +482,7 @@ Negotiation
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
+ since Apache 2.0.46 mod_negotiation
recognizes
the environment variable
prefer-language
. If it exists and contains an
appropriate language tag, mod_negotiation
will
@@ -490,8 +490,9 @@ Negotiation
the normal negotiation process applies.
Example
- SetEnvIf Cookie "language=(.+)" prefer-language=$1
-
+ SetEnvIf Cookie "language=en" prefer-language=en
+ SetEnvIf Cookie "language=fr" prefer-language=fr
+

diff --git a/docs/manual/content-negotiation.xml b/docs/manual/content-negotiation.xml
index 8c5ee937ed6..0618696e027 100644
--- a/docs/manual/content-negotiation.xml
+++ b/docs/manual/content-negotiation.xml
@@ -468,7 +468,7 @@
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
+ since Apache 2.0.46 mod_negotiation recognizes
the environment variable
prefer-language
. If it exists and contains an
appropriate language tag, mod_negotiation will
@@ -476,8 +476,9 @@
the normal negotiation process applies.
Example
- SetEnvIf Cookie "language=(.+)" prefer-language=$1
-
+ SetEnvIf Cookie "language=en" prefer-language=en
+ SetEnvIf Cookie "language=fr" prefer-language=fr
+