ABP Framework version: v4.7.1
UI Type: MVC
Database System: EF Core (SQL Server)
**Tiered (for MVC) **: no
Exception message and full stack trace: This site can’t be reachedCheck if there is a typo in tenantA.asw-raas-dev-web.azurewebsites.net. If spelling is correct, try running Windows Network Diagnostics. DNS_PROBE_FINISHED_NXDOMAIN
Steps to reproduce the issue:
Tryring to implement a url based tenant resolver using subdomain resolver, followed the below article, https://docs.abp.io/en/abp/latest/Multi-Tenancy
And it was working fine on my local with following url, https://tenantA.localhost:44344/ But I'm getting https not secured error on browser for subdomain url, may I know how can I resolve this?
But its not working with my staging environment which was deployed on azure web apps with the following url, https://tenantA.asw-raas-dev-web.azurewebsites.net/ And I'm getting the following error,
Following was the code change
` Uri myUri = new Uri("https://asw-raas-dev-web.azurewebsites.net/");
-----PreConfigureServices---------
PreConfigure<AbpOpenIddictWildcardDomainOptions>(options =>
{
options.EnableWildcardDomainSupport = true;
options.WildcardDomainsFormat.Add("https://{0}." + myUri.Host);
});
-------ConfigureServices---------
Configure<AbpTenantResolveOptions>(options =>
{
options.AddDomainTenantResolver("{0}."+ myUri.Host);
});`
Am I missing anything?
Need feedback or suggestions on this.
1 Answer(s)
-
0
hi
Your domain doesn't have DNS record.
https://www.nslookup.io/domains/tenanta.asw-raas-dev-web.azurewebsites.net/dns-records/
Please add
*.asw-raas-dev-web.azurewebsites.net
toyour service ipaddress