igor will try_files also work with 0.6.x?<br><br><br><div class="gmail_quote">On Mon, Feb 16, 2009 at 1:23 PM, Igor Sysoev <span dir="ltr"><<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Mon, Feb 16, 2009 at 12:04:38PM +0100, Atif Ghaffar wrote:<br>
<br>
> We use this in the server section<br>
><br>
> if (-f /srv/www/maintenance.html) {<br>
> rewrite ^/(.*)$ /maintenance.html last;<br>
> break;<br>
> }<br>
<br>
</div>location / {<br>
try_files /maintenance.html<br>
$uri $uri/index.html $uri.html<br>
@mongrel;<br>
}<br>
<br>
location @mongrel {<br>
proxy_pass <a href="http://mongrel" target="_blank">http://mongrel</a>;<br>
<div><div></div><div class="Wj3C7c">}<br>
<br>
> On Mon, Feb 16, 2009 at 11:30 AM, Phillip B Oldham <<br>
> <a href="mailto:phill@theactivitypeople.co.uk">phill@theactivitypeople.co.uk</a>> wrote:<br>
><br>
> > I seem to remember there was a plugin for nginx would bypass all requests<br>
> > and issue a single "down for maintenance" response, until a certain file was<br>
> > removed/renamed.<br>
> ><br>
> > I can't find it on the wiki though. Was I imagining the plugin?<br>
<br>
<br>
--<br>
</div></div><font color="#888888">Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>best regards<br>Atif Ghaffar<br>