Does Eval Module work Now?
Sirsiwal, Umesh
usirsiwal at verivue.com
Fri Dec 31 18:43:46 MSK 2010
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 at gmail.com]
Sent: Thursday, December 30, 2010 10:15 PM
To: nginx-devel at nginx.org
Subject: Re: Does Eval Module work Now?
On Fri, Dec 31, 2010 at 4:53 AM, Sirsiwal, Umesh <usirsiwal at 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 at nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
More information about the nginx-devel
mailing list