hi all,<div><br></div><div>I&#39;d like to only allow a certain set of ip addresses to access one of our test sites, and redirect anyone with a different ip address to our primary domain.</div><div><br></div><div>location / {</div>
<div>  allow 1.1.1.1;</div><div>  deny all;</div><div>}</div><div><br></div><div>The above code works as expected, but I would like to do something like this:</div><div><br></div><div><div>location / {</div><div>  if not 1.1.1.1 or 1.1.1.2 or 1.1.1.3 do a 301 redirect to <a href="http://www.domain.com">www.domain.com</a> (with request uri)</div>
<div>}</div></div><div><br></div><div>is this possible?</div><div><br></div>