]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
prefer-language is available at 2.0.46 and later [if not, I'll change this
authorAstrid Malo <kess@apache.org>
Tue, 27 May 2003 21:41:30 +0000 (21:41 +0000)
committerAstrid Malo <kess@apache.org>
Tue, 27 May 2003 21:41:30 +0000 (21:41 +0000)
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

docs/manual/content-negotiation.html.en
docs/manual/content-negotiation.xml

index 82ad33364871193b3d6d37c083e150dba41ef22e..937af9647f5b267a86c87866a29957e81c316c1a 100644 (file)
@@ -482,7 +482,7 @@ Negotiation</a></li>
 
     <p>In order to support advanced techniques (such as Cookies or
     special URL-paths) to determine the user's preferred language,
-    since Apache 2.1 <code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code> recognizes
+    since Apache 2.0.46 <code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code> recognizes
     the <a href="env.html">environment variable</a>
     <code>prefer-language</code>. If it exists and contains an
     appropriate language tag, <code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code> will
@@ -490,8 +490,9 @@ Negotiation</a></li>
     the normal negotiation process applies.</p>
 
     <div class="example"><h3>Example</h3><p><code>
-      SetEnvIf Cookie "language=(.+)" prefer-language=$1
-    </code></p></div>
+      SetEnvIf Cookie "language=en" prefer-language=en
+      SetEnvIf Cookie "language=fr" prefer-language=fr
+   </code></p></div>
 
 </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
 <div class="section">
index 8c5ee937ed612b3a9126d0fc815fde29345f4b5c..0618696e0273b31c134b44fd08c6ad1c0d97821f 100644 (file)
 
     <p>In order to support advanced techniques (such as Cookies or
     special URL-paths) to determine the user's preferred language,
-    since Apache 2.1 <module>mod_negotiation</module> recognizes
+    since Apache 2.0.46 <module>mod_negotiation</module> recognizes
     the <a href="env.html">environment variable</a>
     <code>prefer-language</code>. If it exists and contains an
     appropriate language tag, <module>mod_negotiation</module> will
     the normal negotiation process applies.</p>
 
     <example><title>Example</title>
-      SetEnvIf Cookie "language=(.+)" prefer-language=$1
-    </example>
+      SetEnvIf Cookie "language=en" prefer-language=en
+      SetEnvIf Cookie "language=fr" prefer-language=fr
+   </example>
 </section>
 </section>