trying to use and understand satisfy any

Ilan Berkner iberkner at gmail.com
Thu Jan 20 02:11:30 MSK 2011


Hi,

Trying to do something like this:

server
{
 listen...
 server_name...
 root...
 location /
 {
   satisfy any;
   allow 1.2.3.4;
   deny all;
   auth_basic "closed site";
   auth_basic_user_file conf/userFile;
   index index.php;
   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 click on
"Cancel" to make the browser's authentication box close, I stay on the site
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?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110119/3cbd6222/attachment.html>


More information about the nginx mailing list