"down for maintenance" plugin?

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


On Mon, Feb 16, 2009 at 07:35:15PM +0100, Atif Ghaffar wrote:

> igor will try_files also work with 0.6.x?

There is a patch:
http://sysoev.ru/nginx/patch.try_files.0.6.35.1

I plan to add it in 0.6.x after some 0.7.x releases.

> On Mon, Feb 16, 2009 at 1:23 PM, Igor Sysoev <is at rambler-co.ru> wrote:
> 
> > 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/
> >
> >
> 
> 
> -- 
> best regards
> Atif Ghaffar

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





More information about the nginx mailing list