Hi,

works perfectly. Thanks a lot.

Regards,
Erwin

2014-11-21 17:05 GMT+01:00 Baptiste <bed...@gmail.com>:

> On Fri, Nov 21, 2014 at 2:47 PM, Erwin Schliske
> <erwin.schli...@sevenval.com> wrote:
> > Hello,
> >
> > I have one question which I cannot solve on my own.
> >
> > In my defaults I set this options.
> >
> > option httplog
> > option forwardfor
> > option http-pretend-keepalive
> >
> > All of my frontends are http-frontends. Now I have a frontend, which I
> have
> > to run with mode tcp. If I reload the config I get this warnings.
> >
> >> root@haproxy1:~ :( # /etc/init.d/haproxy reload
> >> haproxy neu laden: [WARNING] 324/143744 (28779) : parsing
> >> [/etc/haproxy/haproxy.cfg:48] : 'option httplog' not usable with proxy
> >> 'moma_sms_01_mms' (needs 'mode http'). Falling back to 'option tcplog'.
> >> [WARNING] 324/143744 (28779) : config : 'option forwardfor' ignored for
> >> proxy 'moma_sms_01_mms' as it requires HTTP mode.
> >> [WARNING] 324/143744 (28779) : config : 'option http-pretend-keepalive'
> >> ignored for proxy 'moma_sms_01_mms' as it requires HTTP mode.
> >
> >
> > Is it possible to set the defaults that they are only applied if they are
> > valid or can I negate the defaults in this single frontend?
> >
> > Thanks.
> >
> > Regards,
> >
> > Erwin
>
>
> Hi Erwin,
>
> A defaults section applies parameters until the next defaults section.
> Simply create a defaults section for HTTP, one for TCP and move your
> frontends and backends accordingly and the warnings will disappear.
>
> Baptiste
>

Reply via email to