Conditional http auth

Michael Shadle mike503 at gmail.com
Sun Dec 5 01:58:57 MSK 2010


On Sat, Dec 4, 2010 at 7:41 AM, Eugaia <ngx.eugaia at gmail.com> wrote:

> I've not tested it, but I had a quick look at the code and it appears that
> auth_basic doesn't accept variables (yet), so regardless of the setting
> mechanism, I don't think it will work.
>
> Adding variable support to auth_basic, though, could be useful it seems.

Since it isn't important enough to compile in lua just for this, I
wouldn't have really considered this an option anyway.

But yes, I believe you're still right. It still all relies on nginx
allowing variables. That could be as simple as a two line patch or
could be complex. I don't know?



More information about the nginx mailing list