On Sat, Jul 07, 2012 at 01:22:01PM +0100, Jonathan Matthews wrote:
> On 7 July 2012 08:28, Willy Tarreau <[email protected]> wrote:
> > This one is expected and normal. You shouldn't share defaults sections for
> > TCP and HTTP proxies if you put HTTP settings there. Most people create one
> > defaults section for TCP and another one for HTTP (anyway most often the
> > timeouts differ a lot).
> 
> Willy - how is this actually configured? I'm assuming you don't mean
> by using 2 separate instances ...

It's like I suggested at the end of previous mail :

   defaults http
       mode http
       timeout client/server/connect ...
       log ...
       option httplog ...

   listen http1
       ...

   defaults tcp
       mode tcp
       timeout client/server/connect ...
       log ...
       option tcplog ...

   listen tcp1
       ...

Since each defaults section replaces the previous one for subsequent
sections, it's quite easy in fact.

Regards,
Willy


Reply via email to