Re: Error / Under Maintenance notice page?

2009-02-24 Thread Willy Tarreau
On Tue, Feb 24, 2009 at 02:15:57PM -0500, John Marrett wrote: > 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 > gene

RE: Error / Under Maintenance notice page?

2009-02-24 Thread John Marrett
y 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

Re: Error / Under Maintenance notice page?

2009-02-24 Thread Sun Yijiang
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 > Hi, > Maybe you can specify a backup server as a backend server us

Re: Error / Under Maintenance notice page?

2009-02-24 Thread FinalBSD
Hi, Maybe you can specify a backup server as a backend server use the "backup" keyword. Regards! 2009/2/24 Sun Yijiang > 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, > ple

Error / Under Maintenance notice page?

2009-02-24 Thread Sun Yijiang
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