i was able to generate in the server the cookie (SERVERID) and i can pass
it
i also altered the line
cookie SERVERID insert indirect nocache
to
cookie SERVERID
and also try without the line

however it is not working

curl header:
Set-Cookie: SERVERID=memtom1

is it possible to see the stick table content?


------
Give a man a fish and you feed him for a day. Teach him how to fish and you
feed him for a lifetime.


On Mon, May 13, 2013 at 10:01 PM, Baptiste <bed...@gmail.com> wrote:

> Hi Rui,
>
> This is normal: HAProxy can't store in a stick table headers it has
> itself setup.
> So the line
>   stick store-response set-cookie(SERVERID) table webservers_backend
> will work only if the server set-up the cookie.
>
> If you manage your server to setup this cookie, it may work with the
> configuration below:
>   stick store-response set-cookie(SERVERID) table webservers_backend
>   stick on cookie(SERVERID) table webservers_backend
>   stick on url_param(SERVERID) table webservers_backend
>
> HAProxy will first try to collect stickiness information from the
> Cookie. If it can't find it, then it will look for the information in
> the url parameter.
>
> Baptiste
>
>
> On Mon, May 13, 2013 at 6:47 PM, Rui Luís <rui.l...@gmail.com> wrote:
> > Good day.
> > For a few days i am trying to use stick-table with cookies and url
> > parameters because flash does not support cookies
> > i have the following configuration:
> >
> > backend webservers_backend
> >
> >     cookie SERVERID insert indirect nocache
> >
> >     stick-table type string len 40 size 20k
> >     stick store-response set-cookie(SERVERID) table webservers_backend
> >     stick on url_param(SERVERID) table webservers_backend
> >
> >  server memtom1 ip1 check inter 5000 cookie memtom1
> >  server memtom2 ip2 check inter 5000 cookie memtom2
> >
> > i also try other configurations.. however it does not work..
> >
> > the call from flash..
> > getConfig?val1=xcv93ec9&SERVERID=memtom2;%20path=/
> > i also try
> > getConfig?val1=xcv93ec9&SERVERID=memtom2
> >
> > but it does not work for both..
> >
> > I am entering a dead lock...
> > ------
> > Give a man a fish and you feed him for a day. Teach him how to fish and
> you
> > feed him for a lifetime.
>

Reply via email to