url_param in configure file

From: vaibhav pol <vaibhav4947#gmail.com>
Date: Wed, 28 Jan 2009 14:57:47 +0530


Hi I am using haproxy with 2 web server .

when client send request each time he send query string with parametre username

example : http://192.168.2.106:8022/?username=guest

and my requirement is when I don't want to use cookies when same username come in query string it always sent to the same server .

as log as no server goes down other wise use rondrobin algorithm.

i use url_param in haproxy.conf file

below is my haproxy configuration file setting .


global

       log 127.0.0.1   local0 info
       maxconn 4096
       daemon

defaults
        log     global
        mode    http
        option  httplog
        option  dontlognull
        option redispatch
        retries 3
        maxconn 2000
        contimeout      5000
        clitimeout      50000
        srvtimeout      50000

frontend www 192.168.2.106:8022
        default_backend back_std


backend back_std
        balance url_param username
        option redispatch
        option httpclose
        option forwardfor
        server tb1 13.1.1.4:8022
        server tb2 13.1.1.3:8022



-------------------------------------------------------------------------------------------------------------------------

but it's not working is any thing i am missing .

please suggest me .

thanks in advance. Received on 2009/01/28 10:27

This archive was generated by hypermail 2.2.0 : 2009/01/28 10:30 CET