On Tue, Jul 12, 2011 at 03:16:54PM +0200, Damien Hardy wrote:
> I have done some tests.
> The errorfile 503 directive on empty backend do the job from the client
> point of view but to be very perfect I would like there is no 503 error code
> in my haproxy logs.
OK I see. You want something even uglier ? Chain a normal backend in front
of a monitor-uri :
frontend XXX
use_backend ret200 if { url_beg /test }
...
backend ret200
server 127.0.0.1:11111
frontend monitor
bind :127.0.0.1:11111
monitor-uri /
That way your "ret200" backend will forward to the "monitor" frontend and
will log the 200. Quite dirty but it will do the job :-)
Regards,
Willy