Route53 and Cloudfront The request could not be satisfied?

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-26 13:16:59

问题


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

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

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

So I create A record type A-IPv4 address. with name cdn.domain.com alias target I manully put dxxxxxxxx.cloudfront.net.

But when I open the url:

http://cdn.mydomain.com/test.jpg

I get the error:

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)

What did I miss with my configuration?


回答1:


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

Please check this list:

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

  • WAF (if any) does not block your request

  • Check Http and Https



来源:https://stackoverflow.com/questions/59693199/route53-and-cloudfront-the-request-could-not-be-satisfied

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!