Correct way to setup maintenance page in nginx

Quintin Par quintinpar at gmail.com
Fri Nov 4 08:55:45 UTC 2011


On second thought don’t you think the file check in the “if” condition is
expensive considering it will be executed on every hit?

-Quintin

On Fri, Nov 4, 2011 at 8:43 AM, Quintin Par <quintinpar at gmail.com> wrote:

> Thanks Valentin. This worked like a charm.
>
> I spend nearly 2-3 hours trying for a solution that evaded “if” and just
> “try_files”. Even the official wiki supported that.
>
> There are a lot of solutions out in the wild and most for them don’t work.
> Thanks again for the help.
>
>  -Quintin
> On Fri, Nov 4, 2011 at 1:48 AM, Valentin V. Bartenev <i at vbart.ru> wrote:
>
>> location = /during_build.html {
>>        root /var/www/;
>>        internal;
>>    }
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20111104/5a26987b/attachment.html>


More information about the nginx mailing list