Re: Header manipulation generates a response?

2012-04-05 Thread Baptiste
Hi, Indeed METH_OPTIONS is already an ACL by itself, so you can't include it in an other ACL. When listed at the end of your ACL, it was just understood as a possible path_match option. As Jonathan said, just use the implicit "AND" between ACLs when listed after a directive using them. Cheers

Re: Weird log output

2012-04-05 Thread Baptiste
Hi, Well, there is a directive called "dontlog-normal" to log only errors You should give it a try. cheers On Thu, Apr 5, 2012 at 6:30 PM, Guy Knights wrote: > Thanks Baptiste. I turned on HTTP logging and I'm now getting the actual > HTTP request path in the log output. It looks like it's just

Re: Weird log output

2012-04-05 Thread Jonathan Matthews
On 5 April 2012 17:30, Guy Knights wrote: > Thanks Baptiste. I turned on HTTP logging and I'm now getting the actual > HTTP request path in the log output. It looks like it's just logging all > calls from the Nginx reverse proxy we have on the box that's doing SSL > termination. Is there a way to

Re: Weird log output

2012-04-05 Thread Guy Knights
Thanks Baptiste. I turned on HTTP logging and I'm now getting the actual HTTP request path in the log output. It looks like it's just logging all calls from the Nginx reverse proxy we have on the box that's doing SSL termination. Is there a way to disable this output to the log? Obviously I still w

Re: Header manipulation generates a response?

2012-04-05 Thread Pedro Mata-Mouros
On 05/04/2012, at 14:03, Jonathan Matthews wrote: > Does this work? Like a charm! > > acl path_match path_beg /url1 > use_backend options if path_match METH_OPTIONS > > It seems more visible to me to avoid acl accumulation at definition > time, and to make the use_backend the place that the

Re: Header manipulation generates a response?

2012-04-05 Thread Jonathan Matthews
On 5 April 2012 13:18, Pedro Mata-Mouros wrote: > Thanks :-) > > Ok, I almost got it... The backend stuff and the errorfile trick is working, > but I'm having a few problems with the content switching rule. So here's the > backend stuff: > backend options >        server vm-host01 127.0.0.1:8081

Re: Header manipulation generates a response?

2012-04-05 Thread Pedro Mata-Mouros
Thanks :-) Ok, I almost got it... The backend stuff and the errorfile trick is working, but I'm having a few problems with the content switching rule. So here's the backend stuff: backend options

Re: [PATCH 3/4] MINOR: stats admin: use the backend id instead of its name in the form

2012-04-05 Thread Willy Tarreau
On Thu, Apr 05, 2012 at 11:43:55AM +0200, Cyril Bonté wrote: > Hi Willy, > > > Le 05/04/2012 10:01, Willy Tarreau a écrit : > >On Wed, Apr 04, 2012 at 12:57:20PM +0200, Cyril Bonté wrote: > >>Proxy ids are unique whereas names can be used several times in the > >>configuration. In order to preven

Re: lots and lots of request erros - cR 408

2012-04-05 Thread Alon M
Baptiste writes: > > hey, > > When a packet is lost, there is a retransmit 3s later (TCP protocol). > Which is under the 10s of the timeout currently configured. > So this can't be the reason of too many 408. > > Either you're under attack (somebody trying to take all the resources > of your

Re: [PATCH 3/4] MINOR: stats admin: use the backend id instead of its name in the form

2012-04-05 Thread Cyril Bonté
Hi Willy, Le 05/04/2012 10:01, Willy Tarreau a écrit : On Wed, Apr 04, 2012 at 12:57:20PM +0200, Cyril Bonté wrote: Proxy ids are unique whereas names can be used several times in the configuration. In order to prevent the ambiguity, the HTML form now provides the backend id instead of its nam

Re: TCP retransmissions

2012-04-05 Thread Willy Tarreau
Hi Wolfgang, On Tue, Apr 03, 2012 at 05:20:12PM +0200, Wolfgang Engel wrote: > Hi Willy, > > that sounds interesting because we are using Cisco firewall as well. So > that issue might be related to that. > Our current situation is that we switched back to apache2 with > mod_balancer since we cu

Re: [PATCH 4/4] MAJOR: Add `debug sess` command to unix socket stats interface

2012-04-05 Thread Willy Tarreau
On Mon, Apr 02, 2012 at 06:57:56PM -0700, Aman Gupta wrote: > diff --git a/include/proto/dumpstats.h b/include/proto/dumpstats.h > index eb44a36..d328881 100644 > --- a/include/proto/dumpstats.h > +++ b/include/proto/dumpstats.h > @@ -55,6 +55,8 @@ > #define STAT_CLI_O_TAB 8 /* dump tables */ >

Re: [PATCH 1/4] MINOR: Add release callback to si_applet

2012-04-05 Thread Willy Tarreau
Patch applied, thanks Aman. Willy

Re: Header manipulation generates a response?

2012-04-05 Thread Jonathan Matthews
On 5 April 2012 06:00, Baptiste wrote: > Hey, > > No need to apologies, sometimes it's faster to ask than looking for > the solution for hours and building an ugly workaround. > > If you need help for the setting up the solution, please let us know. > > The content of the file may be: > HTTP/1.0 2

Re: [PATCH 3/4] MINOR: stats admin: use the backend id instead of its name in the form

2012-04-05 Thread Willy Tarreau
On Wed, Apr 04, 2012 at 12:57:20PM +0200, Cyril Bonté wrote: > Proxy ids are unique whereas names can be used several times in the > configuration. In order to prevent the ambiguity, the HTML form now provides > the backend id instead of its name (the name can still be provided in the POST > data).

Re: [PATCH 1/4] MINOR: stats admin: allow unordered parameters in POST requests

2012-04-05 Thread Willy Tarreau
Hi Cyril, Patches look good, all applied, thank you ! Willy