Trying to do something like this:
auth_basic “closed site”;
error_page 404 = @processphp;
error_page 403 = @redirect_to_other_www;
If I do not include the “auth_basic” elements and I’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 “auth_basic” elements but
“Cancel” to make the browser’s authentication box close, I stay on the
until I click on a link on the site at which time I’m redirected.
Is there a way to no preload the site so that if the user cancels the
authentication request, they don’t even see anything?