get complete url using nginx and lua with openresty
I don't really understand what you want, but if you want the actual full URL i think you can use this
$http_host$request_uri;
If anyone is looking for the original request uri, it's here:
ngx.var.request_uri
While ngx.var.uri
is the new uri after ngx rewrite phase.
Try it:
ngx.say(ngx.var.request_uri)
ngx.say(ngx.var.host .. '/' .. ngx.var.uri)