pavlenkodev opened a new issue, #10419:
URL: https://github.com/apache/apisix/issues/10419
### Description
Hello! I have 3 routes:
`/api/*/test`
` /api/*/*/test
`
`/api/*`
` /api/*/*
`
These routes are tied to one upstream. I need to temporarily redirect to the
same upstream, but to route `/api/mock/test`. At the same time, save requests
via
`/api/*/test`
` /api/*/*/test
`
`/api/*`
` /api/*/*
`
To do this, I use the proxy-rewrite plugin. When configuring it, I specify
the URI and Method parameter.
During the implementation, I encountered such a problem. While proxy-rewrite
plugins are not configured on routes, requests reach the correct endpoints. But
when I configure the prixy-rewrite for each route, confusion begins.
Example :
My request curl
http://127.0.0.1:9080/api/5ad37ba4-d36b-4bfc-bdd9-d615739f0d3b/test reaches the
endpoint intended for `/api/*/*` but should be directed to `/api/*/test`. I
tried to solve this problem and found such regularity .
If the routes were created in this order:
` /api/*/*/test route_id = 1
`
`/api/*/test route_id = 2`
` /api/*/* route_id = 3
`
`/api/* route_id = 4`
My queries reach the desired endpoints.
Please tell me how I can configure the plugin or my routes so that they lead
to the specified endpoints?
### Environment
- APISIX version 3.5.0-debian
- etcd version etcd:3.4.15
- APISIX Dashboard version 3.0.1-alpine
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]