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 2021/11/16 06:03:25 UTC
[GitHub] [apisix] tzssangglass commented on issue #5526: "Route" transe function consult: can't transe "/*" to the upstream
tzssangglass commented on issue #5526:
URL: https://github.com/apache/apisix/issues/5526#issuecomment-969891897
here is my conf:
```
curl --location --request PUT 'http://127.0.0.1:9080/apisix/admin/routes/1' \
--header 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' \
--header 'Content-Type: application/json' \
--data-raw '{
"upstream": {
"nodes": {
"httpbin.org:80": 1
},
"type": "roundrobin"
},
"uri": "/*"
}'
```
and test
```
curl 127.0.0.1:9080/get
{
"args": {},
"headers": {
"Accept": "*/*",
"Host": "127.0.0.1",
"User-Agent": "curl/7.64.1",
"X-Amzn-Trace-Id": "Root=1-619348f5-51fea88e5ca45d560072fcc3",
"X-Forwarded-Host": "127.0.0.1"
},
"origin": "127.0.0.1, 49.70.185.26",
"url": "http://127.0.0.1/get"
}
```
it's ok.
can you sure that this request is caught by `/routes/2`? `/*` means match any request uri.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org