Conditional lua http context directive

14 views
Skip to first unread message

vladimir....@gmail.com

unread,
Apr 29, 2019, 3:36:32 PM4/29/19
to openresty-en
Hello

I realized i needed to run some code early in the rewrite context and that "rewrite_by_lua_no_postpone" was needed for me.

It's a pity as first it changes all rewrite_by_lua, also i don't find a solution to make this conditional, i don't want "rewrite_by_lua_no_postpone on" applied to all the server, only for some vhosts.

Is there a workaround to make Lua directives conditional? As the directive doesn't accept variables.

Best

Vlad
Reply all
Reply to author
Forward
0 new messages