nginx-0.8.37
Igor Sysoev
igor at sysoev.ru
Mon May 17 13:50:28 MSD 2010
On Mon, May 17, 2010 at 04:51:45PM +0800, lhmwzy wrote:
> How to use ngx_http_split_clients_module?
> Please give an example.
http {
split_clients "${remote_addr}AAA" $variant {
0.5% .one;
2.0% .two;
- "";
}
server {
location / {
index index${variant}.html;
$cookie_..., etc, may be used as a source for splitting.
The source string is hashed using CRC32 and the percent of the hash
is used as source value.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list