# Load balancing based on part of url or header

**URL:** <https://www.ruby-forum.com/t/load-balancing-based-on-part-of-url-or-header/206544>\
**Category:** NGINX\
**Created:** [May 4, 2011, 1:26pm UTC](https://www.ruby-forum.com/t/load-balancing-based-on-part-of-url-or-header/206544 "2011-05-04T13:26:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [May 4, 2011, 1:26pm UTC](https://www.ruby-forum.com/t/load-balancing-based-on-part-of-url-or-header/206544/1 "2011-05-04T13:26:07Z")

</div>

Hi guys,

is this possible to have similar feature as ip\_hash but not based on  
IP address but on some part of request url (or header)?

## Cheers,

Kamil G.

---

<div class="post-metadata">

**Author:** ![grymuz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/779978/32.png) [@grymuz](https://www.ruby-forum.com/u/grymuz)\
**Post date:** [May 4, 2011, 1:29pm UTC](https://www.ruby-forum.com/t/load-balancing-based-on-part-of-url-or-header/206544/2 "2011-05-04T13:29:13Z")

</div>

Hello!

On Wed, May 04, 2011 at 01:25:38PM +0200, Kamil G. wrote:

> Hi guys,
> 
> is this possible to have similar feature as ip\_hash but not based on  
> IP address but on some part of request url (or header)?

There are 3rd party modules available which do this, check wiki.

Maxim D.
