I am trying to write a new plugin that dynamically generates upstream url (based on header value).
So far I successfully changed upstream host using:
but I need to change path for upstream url too, do you know how can I achieve this ?
I found somewhere that ngx.var.upstream_url but it gives me an error:
“variable “upstream_url” not found for writing;”