This detects access_by_lua_block and consumes the block, rather than attempting to do anything more interesting with it.
(Other *_by_lua_block directives could be handled similarly, but aren't covered in this change.)
It should be possible to preserve the block in some fashion in the future. The main goal of this change is to fix the parsing so directives after a lua block are not treated as being inside the lua block.
The "}" was getting picked up during "args" processing and not triggering an exit from Parse().
This detects access_by_lua_block and consumes the block, rather than attempting to do anything more interesting with it. (Other *_by_lua_block directives could be handled similarly, but aren't covered in this change.)
It should be possible to preserve the block in some fashion in the future. The main goal of this change is to fix the parsing so directives after a lua block are not treated as being inside the lua block.
The "}" was getting picked up during "args" processing and not triggering an exit from Parse().