<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Hello,<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 7, 2013 at 4:10 PM, Jonathan Matthews <span dir="ltr"><<a href="mailto:contact@jpluscplusm.com" target="_blank">contact@jpluscplusm.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">>     rewrite ^.*$ $target #Redirecting all traffic according to map-assigned<br><div>

<br>
</div>I don't particularly like ^^^ this. It seems like a level of<br>
indirection too far ;-)<br></blockquote></div><br><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">​To me​, your solution looks double evil:<br>1°) Using an unneeded 'if' directive<br>2°) Needs modifying each and every location block.<br>




Going that way, you could use the much simpler Paul's solution, denying all blocks to everyone but the allowed IP address, that is copy-pasting 'deny' and 'allow' directives​ everywhere...<br><br>I was trying to think about something more scalable, self-contained and generic. ;o)<br>




</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>