Skip to content

HTTPProxy wildcard route priorities #4985

Locked Answered by sunjayBhatia
stasmir asked this question in Q&A
Discussion options

You must be logged in to vote

At the moment contour does not support globbing or regexes in prefix matches on an HTTPProxy due to inclusion rules and possible routing ambiguity, see this issue for some context: #1179

The matches you have written are taken literally and globbing is not considered, so you would need a request with a path prefix that contains the literal character * in it to match the routes you've configured

In general, longer path prefixes are ordered first when sent to Envoy, so e.g. /foo/bar will "win" over a route with match for /foo given a request with path /foo/bar/baz

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@stasmir
Comment options

@sunjayBhatia
Comment options

Answer selected by stasmir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants