Welcome! Log In Create A New Profile

Advanced

RE: Does Eval Module work Now?

Sirsiwal, Umesh
January 10, 2011 03:32PM
Thanks agentzh,
I tried rewrite_by_lua with the following simple Lua configuration:

local res = ngx.location.capture("/memc?key=" .. memc_key )
print("copass: res " .. res.status .. ' body ' .. res.body)

if res.status == 404 then
print("copas: capture /memc_set")
res = ngx.location.capture("/memc_set?key=" .. memc_key)
print("copss: status " .. res.status);
end



I see that the subrequest was correctly issued to the /memc location. However /memc_set location subrequest was never issued.

The same script works with content_by_lua.

-Umesh


> -----Original Message-----
> From: agentzh [mailto:agentzh@gmail.com]
> Sent: Wednesday, January 05, 2011 11:53 PM
> To: nginx-devel@nginx.org
> Subject: Re: Does Eval Module work Now?
>
> On Sat, Jan 1, 2011 at 3:12 PM, agentzh <agentzh@gmail.com> wrote:
> > 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 :)
> >
>
> I've merged the "rewrite" branch back to "master". The rewrite_by_lua
> directive should be fully functional now at git HEAD of "master":
>
> http://github.com/chaoslawful/lua-nginx-module
>
> You're very welcome to try it out on your side ;)
>
> Thanks!
> -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 2657 December 30, 2010 03:56PM

Re: Does Eval Module work Now?

agentzh 806 December 30, 2010 10:16PM

RE: Does Eval Module work Now?

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

RE: Does Eval Module work Now?

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

Re: Does Eval Module work Now?

agentzh 965 January 03, 2011 10:26PM

Re: Does Eval Module work Now?

agentzh 787 January 01, 2011 11:34PM

Re: Does Eval Module work Now?

agentzh 944 January 05, 2011 11:54PM

RE: Does Eval Module work Now?

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

Re: Does Eval Module work Now?

agentzh 881 January 11, 2011 02:26AM

Re: Does Eval Module work Now?

agentzh 905 January 12, 2011 12:06AM

RE: Does Eval Module work Now?

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



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

Online Users

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