ShiningRush edited a comment on issue #1508:
URL:
https://github.com/apache/incubator-apisix/issues/1508#issuecomment-619560681
The key code is as below
```lua
...
for _, name in ipairs(upstream_names) do
if conf[name] then
ctx.var[upstream_vars[name]] = conf[name]
end
end
...
```
If you want your host parameter setting to nginx, you should place your code
snippet before it.
and why you commented the `host` of `upstream_vars `? I think you can
directly use it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]