Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services Route53和Cloudfront请求无法满足?_Amazon Web Services_Amazon Cloudfront_Amazon Route53 - Fatal编程技术网

Amazon web services Route53和Cloudfront请求无法满足?

Amazon web services Route53和Cloudfront请求无法满足?,amazon-web-services,amazon-cloudfront,amazon-route53,Amazon Web Services,Amazon Cloudfront,Amazon Route53,我只想在cdn.mydomain.com上提供我的s3文件 因此,我创建了cloudfront发行版,该发行版运行良好-我得到了图像 现在我想将我在cdn.domain.com上的域名与route53中的cloudfront相关联 所以我创建了一个记录类型A-IPv4地址。名为cdn.domain.com别名target,我手动将dxxxxxxxx.cloudfront.net放入其中 但当我打开url时: 我得到一个错误: 403 ERROR The request could not be

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

因此,我创建了cloudfront发行版,该发行版运行良好-我得到了图像

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

所以我创建了一个记录类型A-IPv4地址。名为cdn.domain.com别名target,我手动将dxxxxxxxx.cloudfront.net放入其中

但当我打开url时:

我得到一个错误:

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


是的,正如你所说。我只需要填写备用域名:cdn.mydomain.com,其中包含不带ssl的ssl-不允许保存。之后,我从列表中将记录别名点设置为cloudfront。而且它是有效的。谢谢由于在错误中发现的自相矛盾,可以将此特定情况隔离为缺少/不正确的备用域名-它表示403,它还表示错误请求,但真正的错误请求响应是HTTP状态400,而不是403。CloudFront在找不到具有与传入HTTP主机头匹配的备用域名的分发时执行此操作。WAF阻塞是403,但错误主体不会说请求错误。