AWS的例证托管区域和水桶 [英] An illustration of AWS hosted zones and buckets

查看:180
本文介绍了AWS的例证托管区域和水桶的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在以上几个实验,托管区域和水桶,看来我越来越因为即使我可能已经正确设置好一切过期的缓存失败。在开始之前,我想总结一下使用两个草图冗长(坦白地说,繁琐的)AWS文档,并询问是否这确实是正确的。这时我只关心是否正确,但我也很好奇两人是否在功能上是相同的。

After more than a few experiments with hosted zones and buckets, it seems I'm getting failures due to unexpired caches even though I may well have set up everything correctly. Before proceeding, I'd like to summarize using two sketches the lengthy (and frankly, tedious) AWS documentation, and ask whether these are indeed correct. At this time I only care about correctness, but I'm also curious whether the two are functionally equivalent.

有关这两个选项,我没有记录的:

For both options I'm not documenting that:

  • 在该文件已被上传,并在​​桶mysite.com公开和
  • 的托管区域也有NS和SOA记录。

还有使用2托管区域,2桶,1别名记录集,和1 CNAME,我要离开了第三种方法。

There is also a third method using 2 Hosted Zones, 2 Buckets, 1 Alias Record Set, and 1 CNAME that I'm leaving out.

推荐答案

我会建议:

  • 在亚马逊S3,创建一个名为斗 mysite.com
  • 在亚马逊路线53,创建一个托管区的mysite.com(当然,购买域名,或者指向当前域名路线53)
  • 在路线53,创造了一条A记录 mysite.com 使用别名=是顶点,用别名目标设定为亚马逊S3的端点静态网站托管(例如 mysite.com.s3.amazonaws.com
  • 在路线53,创建CNAME记录为 www.mysite.com 并指向 mysite.com
  • In Amazon S3, create a bucket named mysite.com
  • In Amazon Route 53, create a Hosted Zone for mysite.com (and of course, purchase the domain name, or point the current domain name to Route 53)
  • In Route 53, create an A Record for the apex of mysite.com using "Alias = Yes", with the Alias Target set to the endpoint of the Amazon S3 static website hosting (eg mysite.com.s3.amazonaws.com)
  • In Route 53, create a CNAME Record for www.mysite.com and point it to mysite.com

这是类似于选项1,但 www.mysite.com 将指向 mysite.com (而不是相反)。

This is similar to Option 1, but www.mysite.com would be pointing to mysite.com (rather than the reverse).

这篇关于AWS的例证托管区域和水桶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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