Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

匹配规则集匹配优先级不确定问题 #109

Open
tangkunyin opened this issue Jul 3, 2019 · 2 comments
Open

匹配规则集匹配优先级不确定问题 #109

tangkunyin opened this issue Jul 3, 2019 · 2 comments

Comments

@tangkunyin
Copy link

tangkunyin commented Jul 3, 2019

让各位大佬受惊了,是这样的:

我建了一个规则集,里面一堆规则,有些是针对某个业务接口的,有的是对根路径匹配进行反向代理。

当把根路径放到第一位匹配时,页面能加载出来,但接口是404,这个容易理解,毕竟他把业务请求也拦截了,导致404.....

问题是,我把业务域名放到第一位优先匹配,页面却加载不出来了。我自测了规则,此时主页的网址业务规则是不能匹配的,难道他不应该返回主页让第二个规则继续匹配吗?

实际上,他却返回了规则一的转发地址(首页打不开了),这个是Bug了? 还是有其他操作,如下图所示,还望知道的大佬招呼一声,感谢!

image

这个最终路径,不应该是请求url才对么,这样继续往下匹配,就ok.....事与愿违...

@kainstar
Copy link
Collaborator

匹配规则测试只是当前规则的匹配测试,不会使用其他的规则;至于主页打不开可能是规则配的有问题

@tangkunyin
Copy link
Author

@kainstar 前半句没毛病。“至于主页打不开可能是规则配的有问题” -- 这个不是的,主页的匹配规则没问题,现在是优先级的问题。第一匹配不了,现在不继续匹配第二规则,就有问题了吧....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants