lilien1010 commented on issue #761: bug: 三级泛解析路由规则无法匹配 URL: https://github.com/apache/incubator-apisix/issues/761#issuecomment-549719733 this is bug from lua-resty-radixtree ```lua local radix = require("resty.radixtree") local rx = radix.new({ { paths = {"/aa/*"}, metadata = "metadata /aa", }, { paths = {"/aa/*"}, metadata = "metadata /aa1", hosts = {"*.bar.com"} } }) ngx.say(rx:match("/aa/bb", {host = "qqq.bar.com"})) ``` this code will output `metadata /aa1` ,my suggestion is define two raw tree in lua-resty-radixtree, one with host, one without host, we search the radixtree from tree with host first if match return,other wise search tree without host @membphis
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
