I've tried to document the recent changes of these modules in 2.1. Some
Review, comments and suggestions would be fine ...
TIA, nd
--
s;.*;aaaaaoaaaoaaaaooooaaoaaaomaaaa:a:alataa:aaoat:a:a:a
maoaa:a:laoata:a:oia:a:o:a:m:a:o:alaoooat:aaool:aaoaa
matooololaaatoto:aaa:o:a:o:m;;s:\s:\::g;y;mailto:;
\40\51/\134\137|ndparker <[EMAIL PROTECTED]>;;print;
Index: manual/content-negotiation.xml
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/content-negotiation.xml,v
retrieving revision 1.2
diff -u -r1.2 content-negotiation.xml
--- manual/content-negotiation.xml 9 Jan 2003 20:03:15 -0000 1.2
+++ manual/content-negotiation.xml 14 Feb 2003 21:54:46 -0000
@@ -469,6 +469,19 @@
This is necessary to maintain compliance with the HTTP/1.1
specification and to work effectively with properly configured
clients.</p>
+
+ <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
+ 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
+ try to select a matching variant. If there's no such variant,
+ the normal negotiation process applies.</p>
+
+ <example><title>Example</title>
+ SetEnvIf Cookie "language=(.+)" prefer-language=$1
+ </example>
</section>
</section>
Index: manual/env.xml
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/env.xml,v
retrieving revision 1.8
diff -u -r1.8 env.xml
--- manual/env.xml 2 Dec 2002 21:58:34 -0000 1.8
+++ manual/env.xml 14 Feb 2003 21:54:47 -0000
@@ -239,10 +239,10 @@
mechanisms to modify the way Apache behaves when talking to
particular clients. To make these mechanisms as flexible as
possible, they are invoked by defining environment variables,
- typically with <directive
module="mod_setenvif">BrowserMatch</directive>,
- though <directive module="mod_env">SetEnv</directive> and
- <directive module="mod_env">PassEnv</directive> could also be used,
- for example.</p>
+ typically with <directive module="mod_setenvif"
+ >BrowserMatch</directive>, though <directive module="mod_env"
+ >SetEnv</directive> and <directive module="mod_env"
+ >PassEnv</directive> could also be used, for example.</p>
<section id="downgrade">
<title>downgrade-1.0</title>
@@ -292,9 +292,22 @@
<section id="nokeepalive">
<title>nokeepalive</title>
- <p>This disables <directive module="core">KeepAlive</directive> when
set.</p>
+ <p>This disables <directive module="core">KeepAlive</directive>
+ when set.</p>
</section>
+
+ <section id="prefer-language"><title>prefer-language</title>
+
+ <p>This influences <module>mod_negotiation</module>'s behaviour. If
+ it contains a language tag (such as <code>en</code>, <code>ja</code>
+ or <code>x-klingon</code>), <module>mod_negotiation</module> tries
+ to deliver a variant with that language. If there's no such variant,
+ the normal <a href="content-negotiation.html">negotiation</a> process
+ applies.</p>
+
+ </section>
+
<section id="redirect-carefully">
<title>redirect-carefully</title>
Index: manual/mod/mod_setenvif.xml
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/mod/mod_setenvif.xml,v
retrieving revision 1.7
diff -u -r1.7 mod_setenvif.xml
--- manual/mod/mod_setenvif.xml 12 Nov 2002 19:11:36 -0000 1.7
+++ manual/mod/mod_setenvif.xml 14 Feb 2003 21:54:48 -0000
@@ -189,7 +189,10 @@
<p>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
- <code><em>value</em></code>.</p>
+ <code><em>value</em></code>. Since version 2.1 Apache will
+ recognize occurrences of <code>$1</code>..<code>$9</code> within
+ <var>value</var> and replace them by parenthesized subexpressions
+ of <var>regex</var>.</p>
<example>
<title>Example:</title>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]