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">&lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt;</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>
&gt; We use this in the server section<br>
&gt;<br>
&gt; &nbsp; if (-f /srv/www/maintenance.html) {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewrite ^/(.*)$ /maintenance.html last;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
<br>
</div>location / {<br>
 &nbsp; &nbsp;try_files &nbsp; &nbsp; &nbsp;/maintenance.html<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $uri &nbsp;$uri/index.html &nbsp;$uri.html<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @mongrel;<br>
}<br>
<br>
location @mongrel {<br>
 &nbsp; &nbsp;proxy_pass &nbsp; &nbsp; <a href="http://mongrel" target="_blank">http://mongrel</a>;<br>
<div><div></div><div class="Wj3C7c">}<br>
<br>
&gt; On Mon, Feb 16, 2009 at 11:30 AM, Phillip B Oldham &lt;<br>
&gt; <a href="mailto:phill@theactivitypeople.co.uk">phill@theactivitypeople.co.uk</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; &nbsp;I seem to remember there was a plugin for nginx would bypass all requests<br>
&gt; &gt; and issue a single &quot;down for maintenance&quot; response, until a certain file was<br>
&gt; &gt; removed/renamed.<br>
&gt; &gt;<br>
&gt; &gt; I can&#39;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>