You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2019/11/20 02:50:46 UTC
[GitHub] [incubator-apisix] duzhenxun opened a new issue #880: request help: route中使用proxy-rewrite插件有点问题
duzhenxun opened a new issue #880: request help: route中使用proxy-rewrite插件有点问题
URL: https://github.com/apache/incubator-apisix/issues/880
### Issue description
原API地址为
http://apis.juhe.cn/ip/ipNew
必传参数是key,ip
最终请求时应是
http://apis.juhe.cn/ip/ipNew?key=0e989a1f3b24a6b89f865554d4e7fe15&ip=202.101.172.35
现在将此api接入到网关中
{
"value": {
"upstream_id": "00000000000000000207",
"plugins": {
"proxy-rewrite": {
"host": "apis.juhe.cn",
"scheme": "http",
"uri": "/ip/ipNew"
}
},
"uri": "/test",
"desc": "ip地址"
},
"createdIndex": 213,
"key": "/apisix/routes/00000000000000000204",
"modifiedIndex": 213
}
访问 网关地址:
http://kongadmin.com:29080/test?key=0e989a1f3b24a6b89f865554d4e7fe15&ip=202.101.172.35
发现参数没传过去
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services