diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c index 5deb3fe2c5..23aaf1a774 100644 --- a/modules/lua/mod_lua.c +++ b/modules/lua/mod_lua.c @@ -1324,7 +1324,7 @@ static const char *register_authz_provider(cmd_parms *cmd, void *_cfg, const char *function) { lua_authz_provider_spec *spec; - const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE); + const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY); if (err) return err; diff --git a/modules/lua/mod_lua.h b/modules/lua/mod_lua.h index 3e06d1fbec..c51c352399 100644 --- a/modules/lua/mod_lua.h +++ b/modules/lua/mod_lua.h @@ -138,8 +138,6 @@ typedef struct /* value of the LuaRoot directive */ const char *root_path; - - apr_hash_t *authz_providers; } ap_lua_server_cfg; typedef struct