130130The purpose of ** appBaseUrl** is to enable the Angular client to decompose
131131the browser address into tenant-name + base-url.
132132
133- #### Subdomain Multi-Tenancy:
133+ #### Subdomain Multi-Tenancy
134+
134135If we want to use the tenancy name as a subdomain for a multi-tenant
135136application then we can define ** appBaseUrl** as
136137
@@ -140,11 +141,11 @@ http://**{TENANCY\_NAME}**.mydomain.com
140141must be similarly configured for ** remoteServiceBaseUrl** .
141142
142143It's important to understand that subdomain multi-tenancy is a function
143- of the ` DomainTenantResolveContributor ` *** server-side*** module .
144+ of the ` DomainTenantResolveContributor ` server-side class .
144145This means that the server API ** must** be accessed via a sub-domain that
145146conforms to the format you have defined during your configuration of
146147AspNetBoilerplate (see
147- [ these notes ] ( https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/doc/WebSite/Multi-Tenancy.md#determining-current-tenant ) regarding preinitialization).
148+ [ Multi-Tenancy ] ( https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/doc/WebSite/Multi-Tenancy.md#determining-current-tenant ) regarding preinitialization).
148149
149150<img src =" images/angular2-core-subdomain-tenant-resolution-sequence.png " alt =" Angular ASP.NET Core Sub-Domain Tenancy Overview " class =" img-thumbnail " width =" 540 " height =" 379 " />
150151
@@ -154,8 +155,8 @@ infrastructural configurations:
1541551 . We should configure DNS to redirect all subdomains to a static IP
155156 address. To declare 'all subdomains', we can use wildcard like
156157 ** \* .mydomain.com** . Note that if you have a split Angular/API
157- setup, then you will need 2 subdomain formats, such as:
158- ** \* .app.mydomain.com** and ** \* .api.mydomain.com**
158+ setup, then you will need 2 subdomain formats, such as
159+ ** \* .app.mydomain.com** and ** \* .api.mydomain.com** .
1591602 . We should configure IIS to bind this static IP to our application.
160161
161162There may be other ways of doing it but this is the most simple way.
0 commit comments