fjs-icu commented on issue #6171:
URL: https://github.com/apache/apisix/issues/6171#issuecomment-1017523535


   @zaunist  Thank you very much :
   > "hosts": [".test1.com"],
   > "uris": [ "/v1/"],
   > "priority": 10
   
   > "hosts": ["a.test1.com"],
   > "uris": ["/*"],
   > "priority": 1
   
   ret: 
   [20/Jan/2022:13:35:42 +0000] a.test1.com "HEAD /v1/a HTTP/1.1" 502 0 0.001 
"-" "curl/7.29.0" 192.168.0.3:8082 502 0.001 "http://a.test1.com";
   
   The result is correct   ; ok  ok .
   
   
   but
    priority :
   If different routes contain the same uri, determine which route is matched 
first based on the attribute priority. Larger value means higher priority. The 
default value is 0.
   
![image](https://user-images.githubusercontent.com/77909390/150351279-ce49a9c0-bcb2-4dfc-8fc1-d0b7f47aa7a4.png)
   
   


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


Reply via email to