stricklandye opened a new issue, #12722: URL: https://github.com/apache/apisix/issues/12722
### Description Hi apisix community. I am a newbie to apisix and gateway related topics. I would to know that is it feasible (or recommanded) to use two same URIs with different Host? Here is the example: ```shell # two service svc1 ClusterIP 10.0.0.1 svc2 ClusterIP 10.0.0.2 # route rules, i.e. two ApisixRoues, different hosts but same URI. svc1.example.com /* svc1 svc2.example.com /* svc2 ``` then the apisix gateway will forward traffic to differnt service depends on `Host` header in HTTP header. For example as shown above. Any HTTP request with `Host:svc1.example.com ` would be forwarded to `svc1` . I think this is the most basic solution for route management. Right? But recently I’m responsible for managing a Kubernetes cluster which use apisix as gateway. I created two ApisixRoute with differnt host and same URI and they both redirect to same backend K8s service. I can access one of them by using domain name(like svc1.example.com) and another returns 403 error. Why ? Hope someone could give me some adivce. ### Environment - APISIX version (run `apisix version`): - Operating system (run `uname -a`): - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): - APISIX Dashboard version, if relevant: - Plugin runner version, for issues related to plugin runners: - LuaRocks version, for installation issues (run `luarocks --version`): -- 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]
