capturing location with access_by_lua_block

85 views
Skip to first unread message

kseg

unread,
Mar 17, 2017, 4:35:24 AM3/17/17
to openresty-en
The access_by_lua_block doens't seem to get executed when called from a capture.  Something like:

location /capture {
   content_by_lua_block {
      ngx.say(ngx.location.capture("/real").body)
   }
}

location /real {
   access_by_lua_block {
      -- won't execute
   }
}

rewrite_by_lua and content_by_lua both fire, just not access_by_lua.

xie cui

unread,
Mar 19, 2017, 8:31:11 AM3/19/17
to openresty-en
in subrequest the access_by_lua is ignored.

在 2017年3月17日星期五 UTC+8下午4:35:24,kseg写道:
Reply all
Reply to author
Forward
0 new messages