yy8866 edited a comment on issue #761: bug: 三级泛解析路由规则无法匹配
URL: 
https://github.com/apache/incubator-apisix/issues/761#issuecomment-547894322
 
 
   > 
   > 
   > > 理论上*.xxx.xxx.com的优先级是应该大于host为空的那条路由的。实际使用中上优先匹配了空host的那条路由
   > 
   > Sorry, I didn't understand your example, and I didn't search for any route 
related to `xxx.xxx.com`.
   
   理论上*.demo.test.com的优先级是应该大于host为空的那条路由的。
   现在实际情况是优先匹配了空host的那条路由
   
   ——————————————————————
   例如:访问   test1.demo.test.com 或者   test2.demo.test.com
   
   ## 理论应该匹配
   
   ```json
   {
        "value": {
                "host": "*.demo.test.com",
                "plugins": {},
                "uri": "/*",
                "service_id": "00000000000000000066",
                "desc": "*-demo-test-com"
        },
        "createdIndex": 98,
        "key": "/apisix/routes/00000000000000000098",
        "modifiedIndex": 99
   }
   ```
   
   ## 目前实际匹配
   
   ```json
   {
        "value": {
                "plugins": {},
                "service_id": "00000000000000000092",
                "desc": "cdnserver",
                "uri": "/*"
        },
        "createdIndex": 93,
        "key": "/apisix/routes/00000000000000000067",
        "modifiedIndex": 93
   }
   ```
   
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to