我想把我的s3文件放在cdn.mydomain.com上,所以我创建了一个CloudFront分配,它在https://dxxxxxxxx.cloudfront.net/test.jpg上正常工作-我可以得到这张图片。
现在,我想将我的
所以我创建了A记录类型-A-IPv4地址,名称为
但当我打开以下网址时:http://cdn.mydomain.com/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)
我该如何配置才能避免出现问题?
Host
标头匹配的备用域名分发时,它会这样做。WAF阻止是403,但错误内容不会显示“Bad Request”。 - Michael - sqlbot