Hi,<div><br></div><div>Trying to do something like this:</div><div><br></div><div>server</div><div>{</div><div> listen...</div><div> server_name...</div><div> root...</div><div> location / </div><div> {</div><div>   satisfy any;</div>
<div>   allow 1.2.3.4;</div><div>   deny all;</div><div>   auth_basic &quot;closed site&quot;;</div><div>   auth_basic_user_file conf/userFile;</div><div>   index index.php;</div><div>   error_page 404 = @processphp;</div>
<div>   error_page 403 = @redirect_to_other_www;</div><div> }</div><div>}</div><div><br></div><div>If I do not include the &quot;auth_basic&quot; elements and I&#39;m accessing the site from an allowed IP address, I get redirected to another www site per the @redirect_to_other_www block.  If use the &quot;auth_basic&quot; elements but click on &quot;Cancel&quot; to make the browser&#39;s authentication box close, I stay on the site until I click on a link on the site at which time I&#39;m redirected.</div>
<div><br></div><div>Is there a way to no preload the site so that if the user cancels the authentication request, they don&#39;t even see anything?</div><div><br></div><div>Thanks</div>