Skip to content

Commit 5200263

Browse files
committed
Added details of strict domain matching
1 parent 1abedf6 commit 5200263

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

16/umbraco-cms/reference/configuration/webroutingsettings.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ An example of a web routing config with default values, and a placeholder for th
2020
"DisableFindContentByIdPath": false,
2121
"DisableRedirectUrlTracking": false,
2222
"UrlProviderMode": "Auto",
23-
"UmbracoApplicationUrl": "http://www.mysite.com/"
23+
"UmbracoApplicationUrl": "http://www.mysite.com/",
24+
"UseStrictDomainMatching": false
2425
}
2526
}
2627
}
@@ -104,3 +105,14 @@ Defines the Umbraco application URL that the server should reach itself. By defa
104105
{% hint style="info" %}
105106
Previously before v9, it was required to specify **backofffice** path as this was customizable (`/umbraco` by default). However, from v9+ this is no longer possible, so it's sufficient to use the URL that contains the scheme (http/https) and complete hostname.
106107
{% endhint %}
108+
109+
## Strict domain matching
110+
111+
With multi-site setups multiple root nodes will be prepared with assigned domains. When routing a request, the content matched by path below the root node that matches the domain is returned.
112+
113+
A request may be received on an unrecognized domain that otherwise matches by path to a content item. By default Umbraco will route this item.
114+
115+
With `UseStrictDomainMatching` set to `true`, the request will only be routed if the domain as well as the path matches.
116+
117+
Why use this? It's possible to receive requests on domains that are configured on web server but aren't setup as domains in Umbraco. The Azure web app default domain is an example of this. By switching this option on, requests that come in on that domain will no longer be routed.
118+

0 commit comments

Comments
 (0)