Does Eval Module work Now?

agentzh agentzh at gmail.com
Fri Dec 31 06:15:04 MSK 2010


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



More information about the nginx-devel mailing list