Skip to content

Requests are not forwarded, if a similar path exists in YARP #792

Answered by Tratcher
clausndk asked this question in Q&A
Discussion options

You must be logged in to vote

This is by design, proxy routes are not given special priority over local routes, the standard route matching algorithm is applied equally to both and the most specific one wins. To override that you set the Order property on your routes.
In this example something like <Label Key="YARP.Routes.route1.Order">-10</Label> should work (lower numbered routes are checked first).
The alternative is to add a host constraint of "127.0.0.1" to your local ping route so that it doesn't match requests for atlas-local.domain.dk.

Replies: 10 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by clausndk
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Tratcher
Comment options

Tratcher Mar 1, 2021
Collaborator

Comment options

You must be logged in to vote
3 replies
@Tratcher
Comment options

Tratcher Apr 1, 2021
Collaborator

@knight1219
Comment options

@knight1219
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #785 on February 26, 2021 18:44.