Mercurial > hg > nginx-site
diff xml/en/docs/stream/ngx_stream_split_clients_module.xml @ 1752:b4de612feff8
Documented the split_clients module in stream.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 14 Jul 2016 20:33:18 +0300 |
parents | xml/en/docs/http/ngx_http_split_clients_module.xml@95c3c3bbf1ce |
children | 42d2806f5b28 |
line wrap: on
line diff
copy from xml/en/docs/http/ngx_http_split_clients_module.xml copy to xml/en/docs/stream/ngx_stream_split_clients_module.xml --- a/xml/en/docs/http/ngx_http_split_clients_module.xml +++ b/xml/en/docs/stream/ngx_stream_split_clients_module.xml @@ -1,21 +1,20 @@ <?xml version="1.0"?> <!-- - Copyright (C) Igor Sysoev Copyright (C) Nginx, Inc. --> <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> -<module name="Module ngx_http_split_clients_module" - link="/en/docs/http/ngx_http_split_clients_module.html" +<module name="Module ngx_stream_split_clients_module" + link="/en/docs/stream/ngx_stream_split_clients_module.html" lang="en" - rev="2"> + rev="1"> <section id="summary"> <para> -The <literal>ngx_http_split_clients_module</literal> module creates +The <literal>ngx_stream_split_clients_module</literal> module (1.11.3) creates variables suitable for A/B testing, also known as split testing. </para> @@ -26,16 +25,12 @@ variables suitable for A/B testing, also <para> <example> -http { +stream { split_clients "${remote_addr}AAA" $variant { 0.5% .one; 2.0% .two; * ""; } - - server { - location / { - index index${variant}.html; </example> </para> @@ -49,7 +44,7 @@ http { <value>string</value> <value>$variable</value></syntax> <default/> -<context>http</context> +<context>stream</context> <para> Creates a variable for A/B testing, for example: