Is it possible to get the raw location string in a block?
location ~ "/test/(.+)/world" {
access_by_lua_block {
ngx.say(ngx.var.uri)
}
}
I basically want to store: /test/(.+)/world as a var with the regex string pattern
ngx.var.uri will log something like /test/1/world which isn't useful for traceability.