Re: Haproxy shows lots of 'Errors req' stats on fronted

2013-07-01 Thread Amyas
koexuka writes: > But I cant understand the line > HTTP internal state 26, buffer flags 0x00909002, event #730 > What does this mean? The people who understand the internals will have to help with that. But valid http requires \r\n and no \x00 afaik. You should check what IP is sending these

Re: haproxy is not rewriting the Host header in subsequent request

2013-07-01 Thread Amyas
Hudec Peter writes: > > Hi all, > For HAPROXY I tried this > The problem is, that only the first request si rewritten from > www04.devel.domain.com to www.devel.domain.com. All subsequent > request did not pass the rewrite rule. I tried to lobby for a warning msg when you don't have some http*

Re: Can HAProxy Reverse Proxy SSL to Backend?

2013-07-01 Thread Michael Glenney
Nope. I was wrong. This is right. Forget my last Michael Glenney Sent from my iPhone On Jul 1, 2013, at 4:14 PM, David Coulson wrote: > > On 7/1/13 7:10 PM, Qingshan Xie wrote: >> Willy, >> To explain my last question "3. Can HAProxy set a default frontend >> service?" I list a possible

Re: Can HAProxy Reverse Proxy SSL to Backend?

2013-07-01 Thread Michael Glenney
Just put use_backend W6-Backend Without an "if" statement as the last use_backend statement in the PUBLIC front end. If none of the others are matched this will be used. Michael Glenney Sent from my iPhone On Jul 1, 2013, at 4:10 PM, Qingshan Xie wrote: > Willy, > To explain my last qu

Re: Can HAProxy Reverse Proxy SSL to Backend?

2013-07-01 Thread David Coulson
On 7/1/13 7:10 PM, Qingshan Xie wrote: Willy, To explain my last question "3. Can HAProxy set a default frontend service?" I list a possible configuration below, frontend PUBLIC bind :80 acl rec_w7 path_beg /A acl rec_w7 path_beg /B acl rec_w7 path_beg /B .. us

Re: Can HAProxy Reverse Proxy SSL to Backend?

2013-07-01 Thread Qingshan Xie
Willy,     To explain my last question "3. Can HAProxy set a default frontend service?"  I list a possible configuration below, frontend PUBLIC     bind :80     acl rec_w7 path_beg /A     acl rec_w7 path_beg /B     acl rec_w7 path_beg /B     ..    use_backend W7-Backend if rec_w7     #D

Re: use_backend condition-processing

2013-07-01 Thread Willy Tarreau
Hi, On Wed, Jun 26, 2013 at 11:20:49AM +0200, bjun...@gmail.com wrote: > Hi folks, > > i've a question regarding "use_backend" and how conditions are processed. > > My Example: > > > > > frontend http_in_01 > > bind 1.2.3.4:80 > > log global > option httplog > >

Re: CPU at 100%

2013-07-01 Thread Willy Tarreau
Hello Tomas, On Sun, Jun 30, 2013 at 07:02:04PM +0200, Tomas Pospisek wrote: > Hello everybody, > > shortly after starting haproxy on one of our servers, haproxy goes to > 100% and stays there. Hmmm not fun :-/ > We have multiple instances of haproxy running on various servers, but > only one i

Re: Can HAProxy Reverse Proxy SSL to Backend?

2013-07-01 Thread Willy Tarreau
Hi, On Mon, Jul 01, 2013 at 03:06:36PM -0700, Qingshan Xie wrote: > Hello Willy and Lukas, > > >     I have 3 questions regarding HAProxy listed below, Please help. > > 1. Can HAProxy handle 1000 ACL lines in one frontend service? what it's limit? There is no limit. ACLs by themselves do not

Re: use_backend condition-processing

2013-07-01 Thread bjun...@gmail.com
I'm using 1.4.24. I've tested some cases in the meantime, but these tests don't give a clear answer. Anybody an idea ? 2013/6/26 bjun...@gmail.com > Hi folks, > > i've a question regarding "use_backend" and how conditions are processed. > > > My Example: > > > > > frontend http_in_01 >

Re: [patch] Two minor patches about buffer and typo in DOC

2013-07-01 Thread Godbach
No it's not an error, it's intentional. The result is the same (eg: only i==0 && o==0 will return 0), except that the bitwise OR produces more efficient code than the logical one which depending on the compiler and code will produce conditional jumps and explicit setting to 1 or 0. Since a boole

Re: [patch] Two minor patches about buffer and typo in DOC

2013-07-01 Thread Willy Tarreau
Hi, On Tue, Jul 02, 2013 at 01:37:28AM +0800, Godbach wrote: > HiWilly, > There are two patches for your informationwith patch 0002 is just a typo > fix. OK applied, thanks. > For patch 0001, the orignal code confuses me that why bitwise OR isused > to check if the buffer is empty or not as belo

[patch] Two minor patches about buffer and typo in DOC

2013-07-01 Thread Godbach
HiWilly, There are two patches for your informationwith patch 0002 is just a typo fix. For patch 0001, the orignal code confuses me that why bitwise OR isused to check if the buffer is empty or not as below: static inline int buffer_not_empty(const struct buffer *buf) { return buf->i | buf->o; }

Retries when backend goes DOWN after was assigned

2013-07-01 Thread Jose María Zaragoza
Hello: I'm using haproxy-1.4.22 on TCP mode ( I paste haproxy.conf on bottom ) I use health checking with default values, so every 2 seconds, check id server is available. But I've observed that when a backed server is checked as UP but this server goes DOWN when HA Proxy tries to connect to it

Re: haproxy is not rewriting the Host header in subsequent request

2013-07-01 Thread Hudec Peter
Thanks Thomas, It worked. There is really a lot of options so I missed this one. Best regards Peter -Original Message- From: Thomas Heil Date: Monday, July 1, 2013 10:24 AM To: Hudec Peter Cc: "haproxy@formilux.org" Subject: Re: haproxy is not rewriting the Hos

Re: haproxy is not rewriting the Host header in subsequent request

2013-07-01 Thread Thomas Heil
Hi, On 01.07.2013 09:31, Hudec Peter wrote: > Hi all, > > I'm trying to replace the nginx setup with the haprixy which seems to be > more suitable for our purposes. > > In our setup there are several development servers hidden behind the HA > PROXY. The development dserver are the copy of the temp

haproxy is not rewriting the Host header in subsequent request

2013-07-01 Thread Hudec Peter
Hi all, I'm trying to replace the nginx setup with the haprixy which seems to be more suitable for our purposes. In our setup there are several development servers hidden behind the HA PROXY. The development dserver are the copy of the template. On the NGINX I'm doit Host header rewrite ---> ww