首页 > 解决方案 > 无法将自定义域添加到我的 heroku 应用程序

问题描述

当我尝试将自定义域添加到我的应用程序时。它一直给我以下错误。有人能指出我在做什么错吗?

只是为了澄清我已经删除了我所有应用程序上的所有 ssl 证书。但是错误仍然说明了这一点

Domain "mysubdomain.domain.com" could not be created:
mysubdomain.domain.com conflicts with a wildcard cert on app my-another-app, owned by some-manager@herokumanager.com. Please ask the owner to add this domain.

标签: herokussl-certificatesubdomainheroku-ssl

解决方案


以防有人来这里寻找答案。我注意到,如果您有多个应用程序分散在使用相同通配符证书的多个 Heroku 团队中,那么只有在这种情况下您才会遇到此问题。要添加证书,您需要转移一个团队下的所有应用程序,然后将证书添加到您想要的应用程序,然后将它们转移回各自的团队。它不会增加任何停机时间,但如果您在一个团队下拥有许多应用程序,那么这将是一个漫长的过程。


推荐阅读