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/05/22 01:56:26 UTC

[GitHub] [apisix] coolbeevip commented on issue #4290: 404 Route Not Found

coolbeevip commented on issue #4290:
URL: https://github.com/apache/apisix/issues/4290#issuecomment-846331723


   > > "uris": ["/tools"],
   > 
   > The uri here should be configured like this: `"uris": ["/nc-tools/actuator/health"]`
   > It should be consistent with the uri guarantee provided by your backend service.
   
   Thank you for your feedback. It's worked after change route path  `"uris": ["/nc-tools/actuator/health"]` .
   
   My original scenario is as follows:
   
   I have two upstream API
   
   * upstream-1 http://x.x.x.x:port/nc-tools/actuator/health
   * upstream-2 http://x.x.x.x:port/nc-tools/actuator/health
   
   I want to configure two routes with different paths to access them.
   
   * route-1 path /center1/*
   * route-2 path /center2/*
   
   I expected routes are followed: Right?
   
   http://apisix:9098/center1/nc-tools/actuator/health --> route-1 --> upstream-1
   http://apisix:9098/center2/nc-tools/actuator/health --> route-2 --> upstream-2
   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org