Route53 和 Cloudfront 请求无法满足?

Route53 and Cloudfront The request could not be satisfied?

我只想在 cdn.mydomain.com

上提供我的 s3 文件

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

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

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

但是当我打开 url:

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)

我的配置遗漏了什么?

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

请检查此列表:

  • Cloudfront备用域名中添加CDN域名。将 CDN 域添加到 Cloudfront 后,您可以 select CloudFront 端点而无需键入

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

  • 检查 Http 和 Https