https://gitcode.net/mirrors/openresty/lua-nginx-module?utm_source=csdn_github_accelerator
access_by_lua_block {
local res = ngx.location.capture("/auth",{args = ngx.req.get_uri_args()})
if res.status == ngx.HTTP_OK then
return
end
if res.status == ngx.HTTP_FORBIDDEN then
ngx.exit(res.status)
end
ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
}