chaoslawful/lua-nginx-module — Issue #64: ngx.exec with "hidden" arguments
Author: utros
Created: 2011-11-07 18:22:06+00:00
State: open

I want to implement the following:

1. If user have a good cookie (is param exists in redis), pass to my_backend upstream
2. Otherwise pass request to another_backend upstream and proper cookie (I'm retreiving it from backend).

The problem is I'm passing users to another_backend with `exec("/some_location/index.html")` and there is no good way preventing it, but I also should pass flag if I need to set proper cookie (becouse sometimes I'm passing users with proper cookie to another_backend).
So, I have tried ngx.ctx, but It doesn't work with exec.
Do you know another way to pass some parameters to `exec` rather than as arguments? Or is it any way to remove some arguments from request?