You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/frontdoor/front-door-route-matching.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ This section focuses on how Front Door matches to a routing rule. The basic conc
57
57
Azure Front Door uses the following logic to match frontend hosts:
58
58
59
59
1. Determine if there are any routes with an exact match on the frontend host.
60
-
2. If there are no exact frontend hosts match, the request get rejected and a 400: Bad Request error gets sent.
60
+
2. If there are no exact frontend hosts match, the request get rejected and a 404: Bad Request error gets sent.
61
61
62
62
The following tables show three different routing rules with frontend host and paths:
63
63
@@ -73,19 +73,19 @@ The following table shows the matching results for the above routing rules:
73
73
|--|--|
74
74
| foo.contoso.com | A, B |
75
75
| www\.fabrikam.com | C |
76
-
| images.fabrikam.com | Error 400: Bad Request |
76
+
| images.fabrikam.com | Error 404: Bad Request |
77
77
| foo.adventure-works.com | C |
78
-
| contoso.com | Error 400: Bad Request |
79
-
| www\.adventure-works.com | Error 400: Bad Request |
80
-
| www\.northwindtraders.com | Error 400: Bad Request |
78
+
| contoso.com | Error 404: Bad Request |
79
+
| www\.adventure-works.com | Error 404: Bad Request |
80
+
| www\.northwindtraders.com | Error 404: Bad Request |
81
81
82
82
### Path matching
83
83
84
84
After Front Door determines the specific frontend host and filters for possible routing rules, Front Door then selects the routing rules based on the request path. A similar logic to frontend hosts is used to match the request path:
85
85
86
86
1. Determine if there are any routing rules with an exact match to the request path.
87
87
1. If there isn't an exact matching path, then Front Door looks for a routing rule with a wildcard path that matches.
88
-
1. If there are no routing rules found with a matching path, then request gets rejected and a 400: Bad Request error gets set sent.
88
+
1. If there are no routing rules found with a matching path, then request gets rejected and a 404: Bad Request error gets set sent.
89
89
90
90
::: zone pivot="front-door-standard-premium"
91
91
@@ -147,7 +147,7 @@ The following table shows which routing rule the incoming request gets matched t
147
147
>
148
148
> | Incoming request | Matched Route |
149
149
> |------------------------|---------------|
150
-
> | profile.domain.com/other | None. Error 400: Bad Request |
150
+
> | profile.domain.com/other | None. Error 404: Bad Request |
0 commit comments