Hello!
On Tue, Jul 9, 2013 at 12:03 PM, anton.roubtsov wrote:
> Is there any way or work around to set nginx var based on data from redis?
> I want to set and continue execution of location using new value.
>
> set $var "";
> ... Some lua code seting $var to new value from redis data...
>
> fastcgi_param SCRIPT_FILENAME $var;
>
See the code sample on the openresty.org site:
http://openresty.org/#DynamicRoutingBasedOnRedis
Although ngx_proxy is used in this sample, the basic idea is exactly
the same for other things including ngx_fastcgi.
BTW, please join the list before posting, otherwise your posts require
manual moderation.
Best regards,
-agentzh