Hi Amol,

I belive that you will be wanting to use rules in your front end something
like this:


        acl rule1 path_beg -i mon
        use_backend backend1 if rule1

        acl rule2 path_beg -i tue
        use_backend backend2 if rule2


cheers

john



On 17 February 2011 21:11, Amol <mandm_z...@yahoo.com> wrote:

> I was wondering if there is a way to route traffic coming from a particular
> web-url to go to a particular server in the load balanced environment.....
>
> e.g
>
> my urls are abc.xyz.com/mon/app/index.php
>             and abc.xyz.com/tue/app/index.php
>
> and my load balancing configuration has
>  1 haproxy server and 2 apache servers (1A and 1B)
>
> and if i want url with "mon" to go to server "1A" and url with "tue" to go
> to server "1B" , what would be the settings in the haproxy.cfg file? can
> this be done?
>
> i hope my question is not vague...
>
>
>
>

Reply via email to