在AWS上托管的站点的CNAME的外部站点

问题描述 投票:0回答:1

我们在mygreatapp.com上托管了一个应用程序;

我们希望让其他公司在他们的域中使用我们的应用,但指向我们的应用,例如greatapp.theircompany.com;

我想这会添加一个CNAME ...

我如何以greatapp.theircompany.com使用其SSL证书的方式执行此操作?

目前,当我使用CNAME(将greatapp.theircompany.com指向mygreatapp.com)时,它仍然使用来自mygreatapp.com的SSL

我尝试使用Cloudfront,指向mygreatapp.com,然后将greatapp.theircompany.com指向Cloudfront,使用Cloudfront证书或greatapp.theircompany.com证书,在Cloudfront上设置CNAME等,但是当我尝试访问它时通过HTTPS,它给了我一个502。

最好的问候,Níkolas

amazon-web-services amazon-route53 aws-load-balancer
1个回答
0
投票

您需要在证书中添加subject alternate name。您可以在为greatapp.theircompany.com颁发新证书时为mygreatapp.com提供cloudfront证书。您希望主CN成为g​​reatapp.theircompany.com并在SAN列表中包含mygreatapp.com。确保同时引入SAN列表中可能已存在的任何域,否则您将破坏这些站点。

© www.soinside.com 2019 - 2024. All rights reserved.