Hi Alexander,
On Mon 16.06.2008 21:37, Alexander Staubo wrote:
>With Nginx there is a simply trick to put a site in maintenance mode,
>rewriting every request to show a temporary page that says something
>like, "We're upgrading, please wait."
>Is there a way to achieve the same effect in HAProxy -- *without*
>writing a new configuration file and then reloading HAProxy? For
>example, it would be nice if HAProxy had an ACL expression to check a
>file:
>
> acl maintenance file_exists(/app/foo/.maintenance)
>
>But even with such an ACL, I don't see a way to serve a specific file;
>I guess would have to rewrite the request path and send the request to
>a web server backend.
Maybe this can help you ;-)
http://haproxy.1wt.eu/download/1.3/doc/architecture.txt
4. Soft-stop for application maintenance 4.1 Soft-stop using a file on the servers
Hth
Aleks Received on 2008/06/16 23:22
This archive was generated by hypermail 2.2.0 : 2008/06/16 23:30 CEST