Welcome! Log In Create A New Profile

Advanced

Re: Satistfy any not working as expected

Maxim Dounin
May 20, 2015 02:46PM
Hello!

On Wed, May 20, 2015 at 01:12:26PM -0400, Arno0x0x wrote:

> Thanks again for your explanations, they make sense. So I've put back the
> "deny all;" statement. I get the 403 unauthorized message back. And there's
> indeed some good indication in the error log, showing that my auth_request
> script does the job, and then the login page returns the 403 status code.
>
> So I added an "allow all;" statement just on the login page which is the
> only one that needs to be reachable in any case.
>
> Let me paste a more real and complete example of my config (I hid some
> personal stuff), I hope this one makes sense:

[...]

> location = /twofactorauth/login/login.php {
> allow all;
> auth_request off;

[...]

> See the "allow all;" statement under the login.php location ? This make
> everyhting work as I expect, but I hope i makes sense.

Yes, this looks correct. Obviously enough you shouldn't restrict
access to the login page, and 403 is perfectly explained by the
fact that previously it was restricted due to "deny all;" at
server{} level.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Satistfy any not working as expected

Arno0x0x May 18, 2015 04:48AM

Re: Satistfy any not working as expected

Maxim Dounin May 18, 2015 08:46AM

Re: Satistfy any not working as expected

Arno0x0x May 19, 2015 02:20PM

Re: Satistfy any not working as expected

Maxim Dounin May 19, 2015 03:18PM

Re: Satistfy any not working as expected

Arno0x0x May 20, 2015 01:12PM

Re: Satistfy any not working as expected

Maxim Dounin May 20, 2015 02:46PM

Re: Satistfy any not working as expected

Arno0x0x May 20, 2015 03:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 191
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