Route53和Cloudfront请求无法满足? [英] Route53 and Cloudfront The request could not be satisfied?

查看:126
本文介绍了Route53和Cloudfront请求无法满足?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I just want to serve my s3 files on cdn.mydomain.com

因此,我创建了可以在 https://dxxxxxxxx.cloudfront.net/test上正常运行的cloudfront发行版.jpg -我得到了图像.

So I create cloudfront distribution which is working fine on https://dxxxxxxxx.cloudfront.net/test.jpg - I get the image.

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

And now I want to associate my domain at cdn.domain.com with cloudfront in route53.

因此,我创建了一个记录类型A-IPv4地址.我将名称为 cdn.domain.com 的别名目标设置为 dxxxxxxxx.cloudfront.net .

So I create A record type A-IPv4 address. with name cdn.domain.com alias target I manully put 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阻止.

I meet this issue some time before. The request blocked by CloudFront.

请检查以下列表:

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

  • CDN domain added in Cloudfront Alternate Domain Names. Once you add CDN domain to Cloudfront, you can select CloudFront endpoint without typing

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

WAF (if any) does not block your request

检查Http和Https

Check Http and Https

这篇关于Route53和Cloudfront请求无法满足?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆