Base solution for your next web application

Activities of "[email protected]"

Answer

Hi,

If you are hosting your app on Azure, this might help https://stackoverflow.com/a/43571399. Could you try it and let us know if it works ?

The solution in the link is out dated for Azure. You can no longer add wildcards on custom domains, it won't let you. I do have the wildcard DNS record in place though.

Question

.NET Core & Angular - latest version, .NET8 I have been trying to get this working for a couple days, and have read the similar posts but am having no luck. I want to be able to hit each tenant using the URL : https://tenantName.mydomain.com

My web apps:

  • API (host) - https://myserver.azurewebsites.net (Azure web app)
  • Angular app - https://mydomain.com (Azure web app)

My settings (host):

  • ServerRootAddress: https://{TENANCY_NAME}.myserver.azurewebsites.net
  • ClientRootAddress: https://{TENANCY_NAME}.mydomain.com

My Settings (angular):

  • remoteServiceBaseUrl: https://{TENANCY_NAME}.myserver.azurewebsites.net
  • appBaseUrl: https://{TENANCY_NAME}.mydomain.com

DNS

  • mydomain.com is working and is set as a custom domain for the Azure Web App hosting the angular project.
  • I have a wildcard A record in place for mydomain.com that points to the IP of the Azure Web App hosting the angular project.

Browsing to https://tenantName.mydomain.com with a valid tenant name just gives a "site can't be reached" error in the browser. Same when I try to login as a tenant from the host admin UI.

Any help would be appreciated! Thanks.

Showing 1 to 2 of 2 entries