Jon*_*Sud 11 amazon-web-services amazon-cloudfront amazon-route53
我只想在 cdn.mydomain.com 上提供我的 s3 文件
所以我创建了在https://dxxxxxxxx.cloudfront.net/test.jpg上运行良好的 cloudfront 发行版- 我得到了图像。
现在我想将我的域 atcdn.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)
Run Code Online (Sandbox Code Playgroud)
我的配置遗漏了什么?
Ton*_*yVo 15
我之前遇到过这个问题。CloudFront 阻止的请求。
请检查此列表:
在 Cloudfront 备用域名中添加了 CDN 域。将 CDN 域添加到 Cloudfront 后,您无需键入即可选择 CloudFront 端点
WAF(如果有)不会阻止您的请求
检查 Http 和 Https