首页 > 解决方案 > Route53 和 Cloudfront 请求不能满足?

问题描述

我只想在 cdn.mydomain.com 上提供我的 s3 文件

所以我创建了在https://dxxxxxxxx.cloudfront.net/test.jpg上运行良好的云端分发- 我得到了图像。

现在我想将我的域cdn.domain.com与 route53 中的 cloudfront 相关联。

所以我创建了 A 记录类型 A-IPv4 地址。我手动输入了名称cdn.domain.com别名目标dxxxxxxxx.cloudfront.net

但是当我打开网址时:

http://cdn.mydomain.com/test.jpg

我得到错误:

403 ERROR
The request could not be satisfied.
Bad request. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
Generated by cloudfront (CloudFront)

我的配置遗漏了什么?

标签: amazon-web-servicesamazon-cloudfrontamazon-route53

解决方案


我之前遇到过这个问题。CloudFront 阻止的请求。

请检查此列表:

  • 在 Cloudfront 备用域名中添加了 CDN 域。将 CDN 域添加到 Cloudfront 后,您无需输入即可选择 CloudFront 端点

  • WAF(如果有)不会阻止您的请求

  • 检查 Http 和 Https


推荐阅读