From: Astrid Malo Date: Tue, 27 May 2003 21:22:21 +0000 (+0000) Subject: document prefer-language X-Git-Tag: 2.0.46~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0297ad261acfce9c5e0303d358d624fe0a953a2a;p=thirdparty%2Fapache%2Fhttpd.git document prefer-language git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@100050 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/content-negotiation.html.en b/docs/manual/content-negotiation.html.en index 9baa7346807..82ad3336487 100644 --- a/docs/manual/content-negotiation.html.en +++ b/docs/manual/content-negotiation.html.en @@ -480,6 +480,19 @@ Negotiation specification and to work effectively with properly configured clients.

+

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.

+ +

Example

+ SetEnvIf Cookie "language=(.+)" prefer-language=$1 +

+
top

Extensions to Transparent Content diff --git a/docs/manual/content-negotiation.xml b/docs/manual/content-negotiation.xml index ee7562b89d3..8c5ee937ed6 100644 --- a/docs/manual/content-negotiation.xml +++ b/docs/manual/content-negotiation.xml @@ -465,6 +465,19 @@ This is necessary to maintain compliance with the HTTP/1.1 specification and to work effectively with properly configured clients.

+ +

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.

+ + Example + SetEnvIf Cookie "language=(.+)" prefer-language=$1 +