建立与Amazon S3自定义域 [英] Setting up a custom domain with Amazon S3

查看:1187
本文介绍了建立与Amazon S3自定义域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过 iwantmyname.com 买了一个域名,并卡住了建立静态的网页遵循本指南时,主机虽然S3:的http://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html 我想是设置的一切行动,这样,当有人去 mydomain.com 他们看到我的index.html文件托管在S3和URL不应更改为其他类似 mydomain.com.s3-website-us-west-2.amazonaws.com 我只是希望它是 mydomain.com 我被困在过去的一切步骤3.2,其中有我配置路线53东西。有没有人有一步地指导这更好的一步?亚马逊没有做了很好的工作,可能是故意的,以吸引人们去购买他们的支持。

I bought a domain name through iwantmyname.com and got stuck setting up the static website hosting though S3 when following this guide: http://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html What I want is to set everything up so that when someone goes to mydomain.com they see my index.html file hosted on S3 and the URL should not change to something else like mydomain.com.s3-website-us-west-2.amazonaws.com I just want it to be mydomain.com I got stuck on everything past Step 3.2 where it has me configure the Route 53 stuff. Does anyone have a better step by step guide for this? Amazon didn't do a very good job, possibly on purpose to entice people to buy their support.

推荐答案

想通了这一点我自己。以下是需要做的事情: 1)购买你的域名, example.com 2)去亚马逊S3控制台,创建一个名为斗 example.com 3)添加 index.html的文件到它,并提供读取权限 4)使静态的网站托管桶中,在现场使用 example.com 5)进入控制台的R5路由部分,添加 A型记录集(IPV4) 6)别名选择是,然后从下拉端点时,它会像

Figured this out on my own. Here is what needs to be done: 1) buy your domain, example.com 2) go to the Amazon S3 console and create a bucket named example.com 3) add your index.html file to it and provide read permissions 4) enable static website hosting for the bucket, using example.com in the field 5) go to the R5 routing part of the console and add a Type A record set (IPV4) 6) Select Yes for Alias and choose the endpoint from the drop down, it will be something like

example.com..s3-website-us-west-2.amazonaws.com

7)点击创建 8)返回到托管区域,然后点击 example.com 区,在右边你会看到4个命名空间,看起来是这样的:

7) Hit 'Create' 8) Go back to Hosted Zones and click the example.com zone, on the right you will see 4 namespaces that look something like this:

ns-XXXX.awsdns-54.org
ns-XXX.awsdns-15.com
ns-XXXX.awsdns-45.co.uk
ns-XXX.awsdns-27.net

9)复制这些命名空间到记事本什么的 10)亚马逊端现在配置,我们只需要做域的一面,所以在我的情况下,我去了 iwantmyname.com 11)进入编辑命名空间,并将其更改为你从第8步复制的那些 12)我们就大功告成了!只要有耐心,因为它确实需要一些时间来配置这一切。在我的情况下,它花了约15分钟。您可以ping网站或使用nslookup通过您的控制台检查上的进展:

9) Copy these namespaces to a notepad or something 10) The Amazon side is now configured, we just need to do the domain side, so in my case I went to iwantmyname.com 11) Go to edit namespaces, and change them to the ones you copied from step 8 12) We're done! Just be patient as it does take some time to configure all of this. In my case it took about 15 minutes. You can ping the website or use nslookup to check up on the progress through your console:

ping example.com
nslookup example.com

ping命令不如与S3与nslookup,因为亚马逊块它们

pinging is inferior to nslookup with S3 since Amazon blocks them

这篇关于建立与Amazon S3自定义域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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