routing structure to search services with the same path #11716
Replies: 1 comment
-
Hello @aytemuryakup! I'm here to help you with any issues or questions you have. Whether it's solving bugs, answering questions, or becoming a contributor, I've got you covered. I found a similar discussion regarding enabling request URI override using Kubernetes ingress, which might be relevant to your question [1]. In Apache APISIX, the behavior you described—automatically stripping the route prefix from the URI before forwarding the request to the upstream service—is typically achieved using the Currently, there isn't a built-in feature in APISIX to automatically strip the prefix for all routes without using the For now, using the |
Beta Was this translation helpful? Give feedback.
-
I just started using Apisix. The gateways I used before had this feature, but I could not find a definition for this feature in Apisix.
While routing through /demo path, it is looking for the same path in the service I want to route.
For example;
I define a route as above.
When I sent a request to https://xxx.test.local/demo apisix endpoint, I saw that my nginx service was looking for /demo path.
You can see my nginx service logs as below.
[error] 7#7: *1 open() "/usr/share/nginx/html/demo" failed (2: No such file or directory), client: 10.244.0.51, server: localhost, request: "GET /demo HTTP/1.1", host: "xxx.test.local"
Here I solved it down using the rewrite plugin
But sending it directly to the root path of the service, i.e. '/', is a common structure from other gateway applications. Is there such a structure? If so, how can I use it or is it planned to be written?
Beta Was this translation helpful? Give feedback.
All reactions