Hi all,

  dev19 is OK.

The config I use is:


global
   maxconn 1000000
   user root
   group root
   pidfile /usr/var/run/haproxy.pid
   #daemon
   nbproc 1
   debug
   tune.bufsize 16384
   log /dev/log local3 debug
defaults
   option accept-invalid-http-response
   option accept-invalid-http-request
   option httpclose
   mode http
   timeout client 60s
   timeout connect 60s
   timeout server 120s
   no option httpclose
   no option clitcpka
   backlog 40960
   option dontlognull
   no option abortonclose
   no option allbackups
   no option forceclose
   no option nolinger
   option redispatch
frontend ap
   bind  *:80
   maxconn 1000000
   no option http-keep-alive
   option httpclose
   #option http-keep-alive
   #option httpclose
   acl  my_host req.hdr(host) -m str www.mytest.com
   #acl  my_host req.hdr(host) -m sub mytest
   use_backend www if  my_host
   #default_backend www
backend www
   server SERVER 1.2.3.4 maxconn 2000 fall 3 rise 3 inter 30s fastinter 1s
downinter 1s


The dev21 haproxy -vv output is :

 HA-Proxy version 1.5-dev21 2013/12/17
Copyright 2000-2013 Willy Tarreau <[email protected]>

Build options :
  TARGET  = linux2628
  CPU     = generic
  CC      = gcc
  CFLAGS  = -O2 -g -fno-strict-aliasing
  OPTIONS = USE_GETADDRINFO=1 USE_ZLIB=1 USE_OPENSSL=1 USE_STATIC_PCRE=1

Default settings :
  maxconn = 2000, bufsize = 16384, maxrewrite = 8192, maxpollevents = 200

Encrypted password support via crypt(3): yes
Built with zlib version : 1.2.3.4
Compression algorithms supported : identity, deflate, gzip
Built with OpenSSL version : OpenSSL 0.9.8o 01 Jun 2010
Running on OpenSSL version : OpenSSL 0.9.8o 01 Jun 2010
OpenSSL library supports TLS extensions : yes
OpenSSL library supports SNI : yes
OpenSSL library supports prefer-server-ciphers : yes
Built with PCRE version : 8.02 2010-03-19
PCRE library supports JIT : no (USE_PCRE_JIT not set)
Built with transparent proxy support using: IP_TRANSPARENT IPV6_TRANSPARENT
IP_FREEBIND

Available polling systems :
      epoll : pref=300,  test result OK
       poll : pref=200,  test result OK
     select : pref=150,  test result OK
Total: 3 (3 usable), will use epoll.






2013/12/23 Lukas Tribus <[email protected]>

> Hi!
>
>
> > In my test of 1.5dev21, I found the following acl failed:
> >
> > acl  my_host req.hdr(host) -m str www.mytest.com
> >   use_backend www if  my_host
> >
> >
> > and result in an 503 error(because there is no default backend).
> >
> > I tried :
> >    1. my_host req.hdr(host) -m beg www.mytest.com
> >    2. my_host req.hdr(host) -m end www.mytest.com
> >    3. my_host req.hdr(host) -m sub www.mytest.com
> >
> > and all of them works OK.
>
> So, only "-m str" fails silently, but "-m beg/end/sub" works ok?
>
> I don't see this behaviour here, can you give us the full configuration
> (without confidential stuff) and make sure all your backends are up?
>
> Also, does the same configuration work in an older release for you? How
> does "haproxy -vv" looks like?
>
>
>
> Regards,
>
> Lukas

Reply via email to