0

我使用路由 53 作为我的 dns 服务器然后我的路由 53 记录中有一条 A 记录称为 image.mysite.com. A 111.222.333.444

然后我想使用 CloudFront 作为我的 cdn 来缓存图像然后我添加了新的 Distributions 并删除了 A 记录添加 cname:

image.mysite.com.    CNAME    d23456.cloudfront.net

但是当我访问我的网站 image.mysite.com 时,它会显示

Sorry, invalid request

当我尝试直接访问 d23456.cloudfront.net 时,它显示:

ERROR

Failed to contact the origin.

如何成功将 CloudFront 用作 image.mysite.com CDN 并将路由 53 用作 dns 服务器?

4

1 回答 1

2

From your comment it seems that you point CloudFront to the origin server images.mysite.com which actually points back to CloudFront so CloudFront doesn't know how to access your site.

Create another DNS record (e.g. origin.mysite.com. IN A 111.222.333.444) and point CloudFront to it. After that CloudFront would respond to requests to images.mysite.com with data from origin.mysite.com.

于 2013-03-03T21:04:26.237 回答