"down for maintenance" plugin?

mike mike503 at gmail.com
Mon Feb 16 22:13:36 MSK 2009


On Mon, Feb 16, 2009 at 4:23 AM, Igor Sysoev <is at rambler-co.ru> wrote:

>>   if (-f /srv/www/maintenance.html) {
>>                 rewrite ^/(.*)$ /maintenance.html last;
>>                 break;
>>             }
>
> location / {
>    try_files      /maintenance.html
>                   $uri  $uri/index.html  $uri.html
>                   @mongrel;
> }

this is cool but i like #1 better...

you could make a single file enable maintenance mode for -all-
websites on the server.





More information about the nginx mailing list