"down for maintenance" plugin?

Igor Sysoev is at rambler-co.ru
Mon Feb 16 15:23:01 MSK 2009


On Mon, Feb 16, 2009 at 12:04:38PM +0100, Atif Ghaffar wrote:

> We use this in the server section
> 
>   if (-f /srv/www/maintenance.html) {
>                 rewrite ^/(.*)$ /maintenance.html last;
>                 break;
>             }

location / {
    try_files      /maintenance.html
                   $uri  $uri/index.html  $uri.html
                   @mongrel;
}

location @mongrel {
    proxy_pass     http://mongrel;
}

> On Mon, Feb 16, 2009 at 11:30 AM, Phillip B Oldham <
> phill at theactivitypeople.co.uk> wrote:
> 
> >  I seem to remember there was a plugin for nginx would bypass all requests
> > and issue a single "down for maintenance" response, until a certain file was
> > removed/renamed.
> >
> > I can't find it on the wiki though. Was I imagining the plugin?


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list