Hi,
I'm aware that when defining *_by_lua* directives, the deepest one remains.
However, I can't see a way to avoid this behavior.
What I'm trying to replicate is akin to a global access_log directive, then a location-specific access_log off;.
Giving an empty block returns
invalid location config: no runnable Lua code
I would expect something like this to work:
http {
...
server {
...
access_by_lua_file file.lua;
...
location = /foo {
...
access_by_lua? off; # or '' or an empty value
}
}
In such a way that no lua code is run when accessing /foo.
Is this possible ?
Anthony