Welcome! Log In Create A New Profile

Advanced

trying to use and understand satisfy any

January 19, 2011 06:16PM
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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

trying to use and understand satisfy any

iberkner January 19, 2011 06:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 230
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready