Get Tenant by subdomain #6681
Unanswered
alex-rogers-876
asked this question in
Q&A
Replies: 2 comments
-
There is an issue regarding this which is still open. #4708 |
Beta Was this translation helpful? Give feedback.
0 replies
-
It seems there is a bug with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I'm attempting to use subdomains using the tenant's name to resolve such. In my case, working in local host, I edited my host file to point to a new tenant named subdomains to the localhost application.
I'm able to go-to the page and it loads properly using test.mydomain.com:[port] but it does not seem to honour the domaintenantresolver I set up in ConfigureServices. Is this a completely wrong approach to test subdomain multitenancy?
The code below is the function I added in which I call in ConfigureServices. I also added the following lines to my host file: 127.0.0.1 www.mydomain.com 127.0.0.1 www.meme.mydomain.com
Beta Was this translation helpful? Give feedback.
All reactions