Groups
Groups
Sign in
Groups
Groups
openresty-en
Conversations
Labels
About
Send feedback
Help
capturing location with access_by_lua_block
85 views
Skip to first unread message
kseg
unread,
Mar 17, 2017, 4:35:24 AM
3/17/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
3/19/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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