mdh67899 opened a new issue #3474:
URL: https://github.com/apache/apisix/issues/3474
### Issue description
location = /info {
proxy_pass http://192.168.1.10/index.html;
set $appname "app1";
}
我这边有个需求,nginx的location样例是这样写的,转发的时候会在location里设置一个appname变量,用来标记是转发给哪个后台应用的,log_format会将appname打印到日志里,请问在apisix里该怎么实现变量赋值的功能呢?谢谢
### Environment
* apisix version (cmd: `apisix version`):
* OS (cmd: `uname -a`):
* OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
* etcd version, if have (cmd: run `curl
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
* apisix-dashboard version, if have:
----------------------------------------------------------------
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]