On Sun, Jun 27, 2010 at 08:46:59PM +0300, [email protected] wrote:
>  
> May be I am using this option for wrong purpose but it works nicely when at 
> least one backend is available. User is auto-redirected withount any boring 
> error pages. Problem happens only when all backends are down. 

I understand how you use it, but if you absolutely want to use it that
way, then you should ensure that your frontend contains a rule which
prevents the use of the faulty backend once it's down.

For instance :

    frontend pub
        use_backend all_down if { nbsrv(bk_www) lt 1 }
        default_backend bk_www

    backend bk_www
        errorloc303 xxx
        server s1 ...
        server s2 ...
        server s3 ...

    backend all_down
        # no errorloc, no server, the user will get a plain 503.
        # Alternatively, an errorfile might be used to return
        # something cleaner.


Regards,
Willy


Reply via email to