You could also considering using the errorloc directive, a 503 response
will be emitted when there is no backed server available to service the
request.

There's a table of response codes, and what circumstances they are
generated under, in the configuration.txt. 

Search for "Haproxy may emit the following status codes by itself".

-JohnF

> -----Original Message-----
> From: Sun Yijiang [mailto:sunyiji...@gmail.com] 
> Sent: February 24, 2009 4:59 AM
> To: kuan...@mail.51.com
> Cc: haproxy@formilux.org
> Subject: Re: Error / Under Maintenance notice page?
> 
> Thanks, it's inspiring.  Actually I can use the proxy server 
> itself as the backup server (run another HTTP server that 
> only accepts local requests).  That would be the closest 
> solution to what I want.
> 
> Steve
> 
> 
> 2009/2/24 FinalBSD <final...@gmail.com>
> 
> 
>       Hi,
>         Maybe you can specify a backup server as a backend 
> server use the "backup" keyword. 
>       
>       Regards!
>       
>       
>       
>       
>       
>       2009/2/24 Sun Yijiang <sunyiji...@gmail.com>
> 
> 
>               Hi all,
>               
>               When all back-end servers are down or in 
> maintenance mode, is it possible for HAProxy to return a 
> webpage (saying "Sorry, we are in maintenance mode, please be 
> back in 30 minutes", etc.) for all requests?
>               
>               
>               Steve
>               
> 
> 
> 
> 

Reply via email to