RE: Error / Under Maintenance notice page?

From: John Marrett <JMarrett#mediagrif.com>
Date: Tue, 24 Feb 2009 14:15:57 -0500


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:sunyijiang#gmail.com]
> Sent: February 24, 2009 4:59 AM
> To: kuangcb#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 <finalbsd#gmail.com>
>
>
> Hi,
> Maybe you can specify a backup server as a backend
> server use the "backup" keyword.
>
> Regards!
>
>
>
>
>
> 2009/2/24 Sun Yijiang <sunyijiang#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
>
>
>
>
>
Received on 2009/02/24 20:15

This archive was generated by hypermail 2.2.0 : 2009/02/24 21:30 CET