Welcome! Log In Create A New Profile

Advanced

Re: Enforcing authentication requests for all resources under specific path

Jan Wrobel
March 29, 2012 01:22PM
On Thu, Mar 29, 2012 at 4:44 PM, Igor Sysoev <igor@sysoev.ru> wrote:
> On Thu, Mar 29, 2012 at 04:32:32PM +0200, Jan Wrobel wrote:
>> Is there any better way?
>
> I believe the best way to configure is to set explicitly necessery
> directives in all locations where they are required. This leads to
> maintainable configuration.

In my case this is not too good option. I need authentication layer
configuration to be independent from applications configuration. In
case of authentication (not only auth request but also auth basic)
repeating configuration for each location, without 'catch them all'
rule could lead to holes that are hard to notice. For example if I
configure authentication correctly for blog/*html but forget to do it
for blog/*.png the mistake will likely be unnoticed :/

Anyway, if there are no other options, I'll try using auth_request in
server{} section.

Thanks,
Jan

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

Enforcing authentication requests for all resources under specific path

Jan Wrobel March 29, 2012 10:34AM

Re: Enforcing authentication requests for all resources under specific path

Igor Sysoev March 29, 2012 10:46AM

Re: Enforcing authentication requests for all resources under specific path

Jan Wrobel March 29, 2012 01:22PM

Re: Enforcing authentication requests for all resources under specific path

Francis Daly March 29, 2012 04:30PM

Re: Enforcing authentication requests for all resources under specific path

Jan Wrobel March 29, 2012 04:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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