S3上具有路线53的静态网站-无法访问该网站 [英] Static website on S3 with route 53 - Site can't be reached

查看:111
本文介绍了S3上具有路线53的静态网站-无法访问该网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在S3上托管了一个静态网站,并设置了适当的存储桶策略.在另一个选项卡中查看端点"可以很好地工作.此后,我在路由53中创建了一个托管区域,以为其提供理想的人类可读地址.

I have hosted a static website on S3 with suitable bucket policy set. Viewing the "endpoint" in another tab works perfectly fine. After this I created a Hosted zone in route 53 to give it a desirable human readable address.

创建托管区域后,我在新创建的托管区域中有两条记录,一条记录为 NS 类型,另一条记录为 SOA 类型.到目前为止,一切都很好.我继续创建一个新的记录集.

After creating the hosted zone, I have two records in my newly created hosted zone, One being of type NS and the other being of type SOA. So far so good. I go ahead to create a new record set.

我根据需要添加名称,输入类型作为'A'-IPv4地址,为别名勾选是. >,在下拉菜单( Alias Target )中,我可以看到我以前的创建的存储分区端点.

I add the name as desired, enter type as 'A' - IPv4 Address tick yes for Alias, where in the drop down (Alias Target) i can see my previously created bucket endpoint.

我将路由策略设置为简单,并将评估运行状况目标"设置为否".记录集创建成功.但是,当我在另一个选项卡中输入此名称时,出现无法访问该站点"的信息.我尝试使用AWS提供的功能来测试记录集.在这里,我得到的响应代码是"NOERROR",我认为这是一个肯定的响应.我在这里想念什么吗?

I set the routing policy to be simple and Evaluate Health Target set to no. The record set is created successfully. However when i enter this name in another tab, I get the "Site can't be reached". I try and test the record set using the functionality provided by AWS. Here the response code i get is "NOERROR" which i assume is a positive response. Am I missing something here.

我还提到了视频.我错过了什么吗?另外,我还没有自己创建托管区域.

I have also referred to this video. Am I missing something. Also, I have not created the Hosted Zones myself.

推荐答案

托管区域与域不同.您必须为域注册商更新NS值,以指向由Route53生成的NS值.

A hosted zone is not the same as domain. You have to update the NS values for your domain registrar to point to the NS values as generated by Route53.

来自文档:

创建托管区域时,Amazon Route 53会自动创建一个 的名称服务器(NS)记录和授权开始(SOA)记录 该区域. NS记录标识您提供的四个名称服务器 到您的注册商或您的DNS服务,以便路由DNS查询 到Amazon Route 53名称服务器.

When you create a hosted zone, Amazon Route 53 automatically creates a name server (NS) record and a start of authority (SOA) record for the zone. The NS record identifies the four name servers that you give to your registrar or your DNS service so that DNS queries are routed to Amazon Route 53 name servers.

[...]

使用域名注册商更新设置后,包括 Amazon Route 53名称服务器,Amazon Route 53响应DNS 查询托管区域,即使您没有功能 网站.

After you update the settings with your domain registrar to include the Amazon Route 53 name servers, Amazon Route 53 responds to DNS queries for the hosted zone even if you don't have a functioning website.


根据注册商的不同,NS转移可能需要1到24小时.


NS transfer may take from 1 to 24 hours, depending on the registrar.

这篇关于S3上具有路线53的静态网站-无法访问该网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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