FAQ

Page Discussion History

Difference between revisions of "HttpSplitClientsModule"

(Fixed underscore instead of dash in directive names.)
 
(split_clients)
(2 intermediate revisions by 2 users not shown)
Line 22: Line 22:
  
 
== split_clients ==
 
== split_clients ==
'''syntax:''' ''split_clients  $variable { ... } ''
+
<include wikitext nopre src="http://wiki.nginx.org/nginx.org/http/ngx_http_split_clients_module/split_clients.txt" />
 
+
'''default:''' ''none''
+
 
+
'''context:''' ''http''
+
  
 
= References =
 
= References =
  
 +
* [http://nginx.org/en/docs/http/ngx_http_split_clients_module.html Original Documentation]
 
* [http://www.ruby-forum.com/topic/209653 Naming convention discussion]
 
* [http://www.ruby-forum.com/topic/209653 Naming convention discussion]

Revision as of 19:38, 2 May 2012

Contents

Synopsis

ngx_http_split_clients_module is used to split clients based on some conditions(e.g ip addresses, headers, cookies, etc).

Example configuration:

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 MurmurHash2 (as of 1.0.1; previously CRC32) and the percent of the hash is used as source value.

Directives

split_clients

Syntax: split_clients string $variable { ... }
Default:
Context: http
Reference:split_clients


References