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

glob matching improvements #452

Closed
sharbov opened this issue Feb 26, 2018 · 2 comments
Closed

glob matching improvements #452

sharbov opened this issue Feb 26, 2018 · 2 comments
Milestone

Comments

@sharbov
Copy link
Contributor

sharbov commented Feb 26, 2018

Hey,

We've been using fabio for a while now, and we recently started using the glob matcher.

The problem we've encountered was that once we switched the matching strategy it affected all the endpoints matching, in addition to that the glob matcher does not match the '/' signs. these two issues forced us to add many new tags to existing services in order to try and cover all of the possibilities of each endpoint

e.g

urlprefix-/service/foo/*
urlprefix-/service/foo/*/*
urlprefix-/service/foo/*/*/* ...

This is clearly not the preferred solution, I would like to suggest three ways to go about this issue:

  • Add a per tag matching strategy (e.g urlglob-/service/foo/*).
  • Add support for double '*' wild card, which will match '/' signs.
  • Add a new matcher - a regex matcher.

If any of these ideas sounds reasonable to you, I would be happy to open a pull request for them.

relates to #341

Thanks,
Shay

@magiconair
Copy link
Contributor

magiconair commented Feb 27, 2018 via email

@eliasbrange
Copy link

eliasbrange commented Oct 3, 2018

Just stumbled upon this and installed 1.5.9 to fix the problem. However, now it seems to work with both * and **. E.g. /some/path/here is matched by both /some/** and /some/*. What are the preferred way?

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

3 participants