Welcome! Log In Create A New Profile

Advanced

RE: Does Eval Module work Now?

Sirsiwal, Umesh
January 01, 2011 11:12PM
I agree Lua makes it a lot flexible and the cost of Lua is rather small. To achieve rewrite I am using content_by_lua once the rewrite is complete, I just do ngx.exec to other locations. Gives me in effect as eval module.

On auth side, at present I use ngx_auth_request and use content_by_lua to serve the request. So yes, that will be very useful.


-Umesh

________________________________________
From: agentzh [agentzh@gmail.com]
Sent: Saturday, January 01, 2011 2:12 AM
To: nginx-devel@nginx.org
Subject: Re: Does Eval Module work Now?

On Fri, Dec 31, 2010 at 11:43 PM, Sirsiwal, Umesh <usirsiwal@verivue.com> wrote:
> But that should not hang nginx? That would mean we will increment wrong value and a 404 result. But in my case the client never received any response.
>
> I eventually changed over to using lua module.
>

Personally I'd recommend ngx_lua too, it's much more stable than (my
fork of) ngx_eval :)

Actually I'm implementing the "rewrite_by_lua" directive for ngx_lua
(see its "rewrite" branch on GitHub), which can trivially do all the
tasks originally done by ngx_eval :)

And there will also be a "access_by_lua" directive too. Such that many
tasks done by ngx_auth_request can also be trivially achieved, and
with amazingly more flexibility ;)

Cheers,
-agentzh

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel

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

Does Eval Module work Now?

Sirsiwal, Umesh 2618 December 30, 2010 03:56PM

Re: Does Eval Module work Now?

agentzh 788 December 30, 2010 10:16PM

RE: Does Eval Module work Now?

Sirsiwal, Umesh 840 December 31, 2010 10:44AM

RE: Does Eval Module work Now?

Sirsiwal, Umesh 850 January 01, 2011 11:12PM

Re: Does Eval Module work Now?

agentzh 946 January 03, 2011 10:26PM

Re: Does Eval Module work Now?

agentzh 772 January 01, 2011 11:34PM

Re: Does Eval Module work Now?

agentzh 924 January 05, 2011 11:54PM

RE: Does Eval Module work Now?

Sirsiwal, Umesh 803 January 10, 2011 03:32PM

Re: Does Eval Module work Now?

agentzh 860 January 11, 2011 02:26AM

Re: Does Eval Module work Now?

agentzh 877 January 12, 2011 12:06AM

RE: Does Eval Module work Now?

Sirsiwal, Umesh 1192 January 12, 2011 09:30AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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