Thanks Igor.<br><br><div class="gmail_quote">2010/5/17 Igor Sysoev <span dir="ltr">&lt;<a href="mailto:igor@sysoev.ru">igor@sysoev.ru</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Mon, May 17, 2010 at 04:51:45PM +0800, lhmwzy wrote:<br>
<br>
&gt; How to use ngx_http_split_clients_module?<br>
&gt; Please give an example.<br>
<br>
</div>http {<br>
    split_clients &quot;${remote_addr}AAA&quot;  $variant {<br>
                   0.5%                .one;<br>
                   2.0%                .two;<br>
                   -                   &quot;&quot;;<br>
    }<br>
<br>
    server {<br>
        location / {<br>
            index  index${variant}.html;<br>
<br>
$cookie_..., etc, may be used as a source for splitting.<br>
The source string is hashed using CRC32 and the percent of the hash<br>
is used as source value.<br>
<font color="#888888"><br>
<br>
--<br>
</font><div class="im">Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br>