<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153);display:inline">Hello,</div><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 7, 2013 at 6:31 PM, Ian Evans <span dir="ltr"><<a href="mailto:ianevans@digitalhit.com" target="_blank">ianevans@digitalhit.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks. I'll give this a spin. Is there anyway to still trigger the mapping based on the existence of a maintenance.whatever file? Just thinking of the ease of quickly touch'ing the maintenance file to trigger the mapping as opposed to fiddling with the conf and reloading each time you want to do some quick testing.</blockquote>
<div><br><div class="gmail_default" style="font-size:small;color:rgb(51,51,153);display:inline"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">By giving it 30 seconds of intensive thinking, I am sure you could figure this out by yourself, considering you already provided the if (-f ***) {...} trick.<br>
<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Since the <a href="http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#if" target="_blank">http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#if</a>'if'
directive works in server blocks, you could enclose the rewrite rule in
it to only apply 'maintenance mode' based on the presence (or the
absence?) of a specific file.<br><br></div>Please come back to tell us if it worked as intended/expected... or what had to be corrected/added! :o)</div><br></div></div><font size="1"><span style="color:rgb(102,102,102)">---<br>
</span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font>
</div></div>