[haproxy] - persistance - Application Cookie

From: ronan <ronan#kerambrun.net>
Date: Thu, 06 Dec 2007 18:45:02 +0100


Hi all,

I am trying to use the "Application Cookies" feature (referenced by http://haproxy.1wt.eu/download/1.3/doc/haproxy-en.txt) of haproxy (version 1.3.13.1) but without success :(

Is this config correct ?



listen LB
        mode            http
        retries         2
        redispatch
        contimeout      1000
        clitimeout      5000
        srvtimeout      5000
        maxconn 40000
        bind 127.0.0.1:8081
        balance roundrobin

        capture request  header Cookie len 200
        appsession JSESSIONID len 52 timeout 1200000

        server  w1 1.2.3.4:80 check port 80 inter 2000 fall 2 rise 2
        server  w2 1.2.3.5:80 check port 80 inter 2000 fall 2 rise 2

        option  httpclose

____________________________________________________________

For this kind of client HTTP requests :



GET /test.jsp

Host: www.site.fr
User-Agent: Test-User-Agent
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=2FF13861440E7CBE1CFB35027CDAB4B1;
__utma=46370481.625970449.1196775441.1196954403.1196960730.6;
__utmz=46370481.1196775441.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none);
__utmb=46370481; __utmc=46370481

Thanks in advance,

regards,
ronan Received on 2007/12/06 18:45

This archive was generated by hypermail 2.2.0 : 2007/12/06 19:00 CET