Welcome! Log In Create A New Profile

Advanced

Re: nginx mogilefs module 1.0.1

Valery Kholodkov
April 16, 2009 09:38AM
----- "Maxim Dounin" <mdounin@mdounin.ru> wrote:

> And personally I think that security is quite a different thing
> and should be handled in the way admin prefers. It may be
> internal, may be allow/deny, may be something else. That's why I
> usually omit internal from the examples. And any magic is really
> bad here since people may think that software will handle security
> for them while it actually can't.

> On the other hand, it may be handy to actually have this location
> non-internal (e.g. for direct requests from internal services or
> just admin checks).

You might be right. After all, I disclaimed any responsibility for security damages in the license.

Will see whether I'll get any other comments regarding this part.

> Alternatively, this may be handled by something like
>
> set $mogilefs_failover 1;
> proxy_pass $mogilefs_path;
>
> with appropriate lookup of $mogilefs_failover in code before
> returning value for $mogilefs_path.

This is impossible, because I do not evaluate $mogilefs_path variable dynamically. nginx discards all modules' context when it does an internal redirect. Instead, I simply assign a value to variable and the value survives during internal redirect.

--
Regards,
Valery Kholodkov
Subject Author Posted

nginx mogilefs module 1.0.1

Valery Kholodkov April 16, 2009 06:39AM

Re: nginx mogilefs module 1.0.1

Maxim Dounin April 16, 2009 08:21AM

Re: nginx mogilefs module 1.0.1

Valery Kholodkov April 16, 2009 08:49AM

Re: nginx mogilefs module 1.0.1

Maxim Dounin April 16, 2009 09:19AM

Re: nginx mogilefs module 1.0.1

Valery Kholodkov April 16, 2009 09:38AM

Re: nginx mogilefs module 1.0.1

Maxim Dounin April 16, 2009 10:31AM

Re: nginx mogilefs module 1.0.1

Valery Kholodkov April 16, 2009 10:45AM

Re: nginx mogilefs module 1.0.1

mike April 16, 2009 12:05PM

Re: nginx mogilefs module 1.0.1

mike April 16, 2009 12:09PM

Re: nginx mogilefs module 1.0.1

Valery Kholodkov April 16, 2009 12:34PM

Re: nginx mogilefs module 1.0.1

mike April 16, 2009 12:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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