amazon-web-services - Route53 正在将我的 Cloudfront 站点更改为 "not secure"

标签 amazon-web-services amazon-cloudfront amazon-route53

我的整个 Web 应用程序包含在各种 AWS 服务中,并且可以与 Cloudfront 正常工作。

当我访问 abcxxxx.cloudfront.net 时,我的网站按预期工作,并通过 https 进行保护。

当我尝试将自己的自定义域与 Route53 一起使用并将 www.mywebsite.commywebsite.com 设置为别名时,它不再安全。

我的每个别名目标都是正确的Cloudfront域。

我不知道以下内容是否与我的问题有关,但当我尝试访问 mywebsite.com 时,它显示:

"this site cannot be reached"

但是当我访问 www.mywebsite.com 时,它会重定向到 https,并用红色划掉“https”并显示 “不安全”

Cloudfront 也有正确的 CNAMES

如何正确配置 Route53 使其像我的 Cloudfront 域一样工作?

最佳答案

Mark B 回答了问题。不要使用 Cloudfront 的默认 SSL 证书。转到证书管理器并请求一个新证书并在 Cloudfront 中使用该证书。然后我的网站完全按照预期运行

关于amazon-web-services - Route53 正在将我的 Cloudfront 站点更改为 "not secure",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45216971/

相关文章:

wordpress - wordpress 上的 Cloudfront SSL 问题。重定向太多

从 Cloudflare 到 Amazon API Gateway 的 DNS 设置

caching - 静态文件应该缓存多长时间?

amazon-web-services - 使用 Route 53 将特定路径路由到特定 EC2 实例

amazon-web-services - 在 Amazon Route 53 中更好地使用加权循环路由

amazon-web-services - lambda - 用户无权执行 : cognito-idp:ListUsers

javascript - 如何解析 aws api 日期字符串?

amazon-web-services - 针对经过身份验证的用户的 AWS S3 策略

amazon-web-services - AWS Route53 - 委托(delegate)子域

mysql - AWS : Using a KMS-encrypted master password to create a RDS instance