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 2022/01/20 13:34:32 UTC
[GitHub] [apisix] leslie-tsang removed a comment on issue #6171: bug: why request is forwarded to wildcard API?
leslie-tsang removed a comment on issue #6171:
URL: https://github.com/apache/apisix/issues/6171#issuecomment-1017509656
Hello there, try
```shell
curl http://127.0.0.1:80/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"upstream": {
"nodes": {
"192.168.0.3:8081": 1
},
"type": "roundrobin"
},
"hosts": [".test1.com"],
"uris": [ "/v1/"],
"priority": 10
}'
curl http://127.0.0.1:80/apisix/admin/routes/2 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"upstream": {
"nodes": {
"192.168.0.3:8082": 1
},
"type": "roundrobin"
},
"hosts": ["a.test1.com"],
"uris": ["/*"],
"priority": 1
}'
```
--
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