Welcome! Log In Create A New Profile

Advanced

RE: Does Eval Module work Now?

Sirsiwal, Umesh
December 31, 2010 10:44AM
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.

-Umesh
________________________________________
From: agentzh [agentzh@gmail.com]
Sent: Thursday, December 30, 2010 10:15 PM
To: nginx-devel@nginx.org
Subject: Re: Does Eval Module work Now?

On Fri, Dec 31, 2010 at 4:53 AM, Sirsiwal, Umesh <usirsiwal@verivue.com> wrote:
>
> location /eval/ {
> rewrite /eval(.*)$ $1 break;
> eval $res {
> set $memc_key $host:$request_uri;
> set $memc_value 1;
> set $memc_cmd incr;
> memc_pass 127.0.0.1:11211;
> }

One pitfall with ngx_eval is that it *always* runs before any rewrite
phase directives like "rewrite".

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 2770 December 30, 2010 03:56PM

Re: Does Eval Module work Now?

agentzh 849 December 30, 2010 10:16PM

RE: Does Eval Module work Now?

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

RE: Does Eval Module work Now?

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

Re: Does Eval Module work Now?

agentzh 1023 January 03, 2011 10:26PM

Re: Does Eval Module work Now?

agentzh 865 January 01, 2011 11:34PM

Re: Does Eval Module work Now?

agentzh 997 January 05, 2011 11:54PM

RE: Does Eval Module work Now?

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

Re: Does Eval Module work Now?

agentzh 931 January 11, 2011 02:26AM

Re: Does Eval Module work Now?

agentzh 959 January 12, 2011 12:06AM

RE: Does Eval Module work Now?

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



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

Online Users

Guests: 78
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready