Welcome! Log In Create A New Profile

Advanced

Re: auth_request_set into variable and lua

December 05, 2012 10:36PM
On Wed, Dec 5, 2012 at 10:02 PM, agentzh <agentzh@gmail.com> wrote:
> Hello!
>
> On Tue, Dec 4, 2012 at 7:36 PM, djczaski wrote:
>> I was looking at nginx as a replacement of another web server in order
>> to improve performance on an embedded platform. Actually, I was able
>> to implement this through access_by_lua while I was having problems
>> and although it worked, performance was worse than using the fastcgi
>> authorizer on the other server.
>
> How did you write your Lua code in access_by_lua? Are you using
> blocking 3rd-party Lua libraries there?

No. Its basically:

local res = ngx.location.capture("/auth")
if res.status == 200 then
ngx.var.test = res.headers["X-Boo"]
else
ngx.exit(res.status)
end

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

auth_request_set into variable and lua

djczaski December 04, 2012 05:18PM

Re: auth_request_set into variable and lua

agentzh December 04, 2012 09:20PM

Re: auth_request_set into variable and lua

djczaski December 04, 2012 10:38PM

Re: auth_request_set into variable and lua

agentzh December 05, 2012 10:04PM

Re: auth_request_set into variable and lua

djczaski December 05, 2012 10:36PM

Re: auth_request_set into variable and lua

agentzh December 05, 2012 11:02PM

Re: auth_request_set into variable and lua

Maxim Dounin December 05, 2012 06:22AM

Re: auth_request_set into variable and lua

djczaski December 05, 2012 09:27AM

Re: auth_request_set into variable and lua

djczaski December 05, 2012 09:27AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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