# Split-clients for vhosts how?

**URL:** <https://www.ruby-forum.com/t/split-clients-for-vhosts-how/226918>\
**Category:** NGINX\
**Created:** [February 25, 2013, 9:32pm UTC](https://www.ruby-forum.com/t/split-clients-for-vhosts-how/226918 "2013-02-25T21:32:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![varix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e8c25b/32.png) [@varix](https://www.ruby-forum.com/u/varix)\
**Post date:** [February 25, 2013, 9:32pm UTC](https://www.ruby-forum.com/t/split-clients-for-vhosts-how/226918/1 "2013-02-25T21:32:59Z")

</div>

Hallo,

what is the right way to use the Module ngx\_http\_split\_clients\_module  
with  
some vhosts?

Varix

Posted at Nginx Forum:

> **[split-clients for vhosts how?](https://forum.nginx.org/read.php?2,236593,236593#msg-236593)**
>
> Hallo, what is the right way to use the Module ngx\_http\_split\_clients\_module with some vhosts? Varix

---

<div class="post-metadata">

**Author:** ![varix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e8c25b/32.png) [@varix](https://www.ruby-forum.com/u/varix)\
**Post date:** [February 27, 2013, 6:49pm UTC](https://www.ruby-forum.com/t/split-clients-for-vhosts-how/226918/2 "2013-02-27T18:49:05Z")

</div>

Or same question in an other ask.

For example I have a server with 10 virtualdomains.

vhost 1, [example.com](http://example.com) with 5,000 visitors a month  
vhost 2, [example.org](http://example.org) with 300,000 visitors a month  
vhost 3, [example.net](http://example.net) with 10,000 visitors a month  
vhost 4, [example.de](http://example.de) with 20,0000 visitors a month  
vhost 5, [example.fr](http://example.fr) with 800,000 visitors a month  
vhost 6, example.nl with 350,000 visitors a month  
vhost 7, [example2.com](http://example2.com) with 20,000 visitors a month  
vhost 8, [example3.com](http://example3.com) with 2,000 visitors a month  
vhost 9, [example4.com](http://example4.com) with 175,000 visitors a month  
vhost 10, [example5.com](http://example5.com) with 50,000 visitors a month

We will splittest on vhost 1,6,8 and 9.  
vhost 1 with two sites 50:50  
vhost 6 with three sites 33.33:33.33:33.33  
vhost 8 with two sites 50:50  
vhost 9 with four sites 30:30:20:20

Where and how is the configuration for each domain?

What is “AAA” meaning in the first line?  
split\_clients “${remote\_addr}AAA” $variant {  
0.5% .one;  
2.0% .two;  
\* “”;  
}

Varix

Posted at Nginx Forum:

> **[Re: split-clients for vhosts how?](https://forum.nginx.org/read.php?2,236593,236678#msg-236678)**
>
> Hallo, what is the right way to use the Module ngx\_http\_split\_clients\_module with some vhosts? Varix
