# Custom Domain referencing wrong tenant

**URL:** <https://community.auth0.com/t/custom-domain-referencing-wrong-tenant/93321>\
**Category:** Get Help\
**Tags:** custom-domain\
**Created:** [October 28, 2022, 7:32pm UTC](https://community.auth0.com/t/custom-domain-referencing-wrong-tenant/93321 "2022-10-28T19:32:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![i-said-no-cops](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/i-said-no-cops/32/39812_2.png) [@i-said-no-cops](https://community.auth0.com/u/i-said-no-cops)\
**Post date:** [October 28, 2022, 7:32pm UTC](https://community.auth0.com/t/custom-domain-referencing-wrong-tenant/93321/1 "2022-10-28T19:32:58Z")

</div>

I have a dev tenant and a prod tenant. I’m using the authorization flow for my app and the universal login screen for login. I set up a custom domain for prod and it works fine over localhost - all I had to update was the auth0 domain. But over my hosted prod environment the custom domain isn’t working. It actually redirects to the dev tenant domain with the dev client ID and throws an error. Did I misconfigure something or miss something? Are there any known/common sticking points getting custom domains to work in hosted environments?

---

<div class="post-metadata">

**Author:** ![i-said-no-cops](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/i-said-no-cops/32/39812_2.png) [@i-said-no-cops](https://community.auth0.com/u/i-said-no-cops)\
**Post date:** [November 2, 2022, 4:50pm UTC](https://community.auth0.com/t/custom-domain-referencing-wrong-tenant/93321/2 "2022-11-02T16:50:03Z")

</div>

Just so no one gets confused by this with a similar question in the future. This turned out to be a mistake from our devops department. Nothing was misconfigured or wrong in the code.

---

<div class="post-metadata">

**Author:** ![dtykholaz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dtykholaz/32/33300_2.png) [@dtykholaz](https://community.auth0.com/u/dtykholaz)\
**Post date:** [December 9, 2022, 10:35am UTC](https://community.auth0.com/t/custom-domain-referencing-wrong-tenant/93321/3 "2022-12-09T10:35:00Z")

</div>

Hi @i-said-no-cops ,  
Can you provide more details on how it was fixed? Have all the same  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 23, 2022, 10:35am UTC](https://community.auth0.com/t/custom-domain-referencing-wrong-tenant/93321/4 "2022-12-23T10:35:10Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
