Hey,
I'm missing a conceptual understanding of why the following doesn't work:
location /foo {
access_by_lua_block {
-- ...
ngx.log(ngx.ERR, "Foo ran")
}
location /foo/bar {
access_by_lua_file bar/somefile.lua
}
}
now when I send a request to "/foo/bar", I won't get "Foo ran" in my log, but I do when sending a request to "/foo".
To me `access_by_lua` directives clearly seemed to be able to be nested, but instead there nested `access_by_lua` directives seem to override the previous ones?
I've read the docs and did not spot something that would point into this direction.
Would really appreciate if someone can clear this up for me, maybe the docs could be extended to make this clear.
Regargs,
dnorth