RE: Sticky session, dumb client

2009-10-28 Thread Robinson, Michael
Thanks again, Aleks and Willy. This is finally working - not an elegant solution, but as a workaround a SERVERID cookie can be appended onto the request header using Apache mod_header that mimics the one inserted by HAproxy on outgoing responses. So, basically HAproxy sees a "normal" client re

Re: Backend sends 204, haproxy sends 502

2009-10-28 Thread Aleksandar Lazic
On Mit 28.10.2009 17:12, Dirk Taggesell wrote: On Wed, Oct 28, 2009 at 2:19 PM, Jeffrey 'jf' Lim wrote: what version of haproxy is this? Ah sorry. It is 1.3.17 Is it possible to update to 1.3.22 yust to be on the save side ;-) ### http://haproxy.1wt.eu/ Let's put it short : those of you r

Re: rewriting urls

2009-10-28 Thread XANi
Hi, On Wed, 28 Oct 2009 12:39:03 +, Matt wrote: > Think I figured it out now. > > I'm using an acl to push the request to a backend that contains the > external server. In the backend i'm then rewriting the url. > > What are the reasons most people seem to front haproxy with apache or > ngi

Re: Backend sends 204, haproxy sends 502

2009-10-28 Thread Dirk Taggesell
BTW: sorry for the somewhat wierd looking thread. I forgot to manually include haproxy@formilux.org as recipient and manually re-sent it afterwards to the list - for the sake of completeness. And I am forced to use this abomination of a mail reader called google mail, because my mail relay at 1un

Re: Backend sends 204, haproxy sends 502

2009-10-28 Thread Dirk Taggesell
On Wed, Oct 28, 2009 at 3:30 PM, Jeffrey 'jf' Lim wrote: > it looks like Karsten's suspicion is correct. Try adding the > 'Content-length: 0' header. haproxy is still expecting more data from the > backend. (It apparently does not know about status 204???). > thanks, Jeffrey and Karsten, I forw

Re: Backend sends 204, haproxy sends 502

2009-10-28 Thread Dirk Taggesell
On Wed, Oct 28, 2009 at 2:19 PM, Jeffrey 'jf' Lim wrote: what version of haproxy is this? > Ah sorry. It is 1.3.17 > do 200 requests from the same backend passed through haproxy work? > Yes, haproxy generally works when i test it with an ordinary Apache as back-end instead of the custom app.

Re: Backend sends 204, haproxy sends 502

2009-10-28 Thread Dirk Taggesell
On Wed, Oct 28, 2009 at 2:05 PM, John Lauro wrote: > You could run mode tcp if you setup haproxy in transparent mode . > The docs say: Note that contrary to a common belief, this option does NOT make HAProxy present the client's IP to the server when establishing the connection. Which makes sen

RE: Backend sends 204, haproxy sends 502

2009-10-28 Thread John Lauro
Oops, me bad. that's technically right. I was burned by this terminology too. What is considered transparent mode is actually good if you want to proxy the world instead of your servers, and it can be combined with usesrc. Anyways, what I should of said was you can make Haproxy present the

Re: Backend sends 204, haproxy sends 502

2009-10-28 Thread Jeffrey 'jf' Lim
On Wed, Oct 28, 2009 at 9:54 PM, Dirk Taggesell < dirk.tagges...@googlemail.com> wrote: > On Wed, Oct 28, 2009 at 2:19 PM, Jeffrey 'jf' Lim wrote: > > what version of haproxy is this? >> > > Ah sorry. It is 1.3.17 > > >> do 200 requests from the same backend passed through haproxy work? >> > > Ye

Re: Backend sends 204, haproxy sends 502

2009-10-28 Thread Karsten Elfenbein
Hi, most 502 errors in haproxy responses come from "bad" backend responses. Could you try adding a "Content-Length: 0" header to the backend response? I don't know if RFC requires it in a 204 response. btw. the expires date in your setcookie looks a bit strange. 0059, 1959 or 2059? Karsten Am

Re: Backend sends 204, haproxy sends 502

2009-10-28 Thread Jeffrey 'jf' Lim
On Wed, Oct 28, 2009 at 9:02 PM, Dirk Taggesell < dirk.tagges...@googlemail.com> wrote: > Hi all, > > I want to load balance a new server application that generally sends > http code 204 - to save bandwidth and to avoid client-side caching. > In fact it only exchanges cookie data, thus no real con

RE: Backend sends 204, haproxy sends 502

2009-10-28 Thread John Lauro
You could run mode tcp if you setup haproxy in transparent mode . From: Dirk Taggesell [mailto:dirk.tagges...@googlemail.com] Sent: Wednesday, October 28, 2009 9:03 AM To: haproxy@formilux.org Subject: Backend sends 204, haproxy sends 502 Hi all, I want to load balance a new server applic

Backend sends 204, haproxy sends 502

2009-10-28 Thread Dirk Taggesell
Hi all, I want to load balance a new server application that generally sends http code 204 - to save bandwidth and to avoid client-side caching. In fact it only exchanges cookie data, thus no real content is delivered anyway. When requests are made via haproxy, the backend - as intended - deliver

Re: rewriting urls

2009-10-28 Thread Matt
Think I figured it out now. I'm using an acl to push the request to a backend that contains the external server. In the backend i'm then rewriting the url. What are the reasons most people seem to front haproxy with apache or nginx? Thanks, Matt 2009/10/27 Matt : > Hi, > > I've managed to rew

Re: Sticky session, dumb client

2009-10-28 Thread Aleksandar Lazic
On Die 27.10.2009 20:37, Robinson, Michael wrote: Thanks for the reply, Aleks. appsession lookup in URL does not seem to work for me. Please can you rebuild haproxy with DEBUG=-DDEBUG_HASH and run it with -db to see what's in the hash. The request, as it appears in HTTP access_log: 64.88.