Re: haproxy configuration to use forwardfor with websockets

2013-05-12 Thread Peter Saitz
3. is there a way for haproxy to detect this scenario? Or how would I create special block of options/rules for such clients in haproxy config? If yes, can you provide some example? I am digging into this mainly because IE is not sending all headers when sending cross-origin request (not sure if th

Re: haproxy configuration to use forwardfor with websockets

2013-05-12 Thread Baptiste
Hi, My answers inline. On Sun, May 12, 2013 at 11:25 PM, Peter Saitz wrote: > 1. For http, I should set this to balanace roundrobin and haproxy is > attaching A or B to the cookie, if this A or B is present in cookie for any > following incoming request, then user is directed > to the same ser

Re: haproxy configuration to use forwardfor with websockets

2013-05-12 Thread Peter Saitz
3. If cookie is not accepted by client's browser, how can I ensure that all those clients are redirected to a single server? On Sun, May 12, 2013 at 2:21 PM, Peter Saitz wrote: > I see, hmm, reason why I went this way originally was to ensure stickiness > of single browser session. I think I sl

Re: haproxy configuration to use forwardfor with websockets

2013-05-12 Thread Peter Saitz
I see, hmm, reason why I went this way originally was to ensure stickiness of single browser session. I think I slightly misunderstood the haproxy documentation first time I red it. Is this how it works? 1. For http, I should set this to balanace roundrobin and haproxy is attaching A or B to the c

Re: Websockets and RTMP

2013-05-12 Thread Jonathan Matthews
On 12 May 2013 10:03, pablo platt wrote: > Can you please explain how to use ssl_fc? > I couldn't find it in the configuration docs. > > Please see below the global and defaults sections which I get when > installing the haproxy-1.4.18 deb package on ubuntu 12.04 ssl_fc is only in HAProxy 1.5. J

Re: haproxy configuration to use forwardfor with websockets

2013-05-12 Thread Baptiste
On Sat, May 11, 2013 at 10:47 PM, Peter Saitz wrote: > A side question: all traffic is directed to B server (second server in > configuration), the BAYEUX_BROWSER cookie is attached but it is always the > "B" one. I have no clue what is wrong, do you see any problem why http > traffic should go to

Re: Websockets and RTMP

2013-05-12 Thread pablo platt
Can you please explain how to use ssl_fc? I couldn't find it in the configuration docs. Please see below the global and defaults sections which I get when installing the haproxy-1.4.18 deb package on ubuntu 12.04 The frontend and backend parts are what I thought of using after reading the answer h