amazon-web-services - 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)
我的配置遗漏了什么?
解决方案
我之前遇到过这个问题。CloudFront 阻止的请求。
请检查此列表:
在 Cloudfront 备用域名中添加了 CDN 域。将 CDN 域添加到 Cloudfront 后,您无需输入即可选择 CloudFront 端点
WAF(如果有)不会阻止您的请求
检查 Http 和 Https
推荐阅读
- opentok - OpenTok TokBox:当第一个连接的用户发布时,如何自动启动会话的实时流 (rtmp) 广播?
- matlab - 访问 Simulink 中的“隐藏”变量
- ios - 如何配置 Apache 以接受具有 TLS v1.2 的过期客户端证书?
- java - 导航视图、列表视图和选定项目的问题
- html - HTML 文本移动
- html - 根据同一 div 中是否存在不同的类来隐藏一个类
- excel - 通过 Microsoft Graph API 创建 excel 文件
- android - 获取音频的字节反转,它变成原始音频信号的相位
- javascript - 将产品 ID 传递到 Facebook 像素事件的 Javascript 函数
- typescript - Loopback 4:将模型上的“严格模式”设置为 false