AWS Route53托管区域设置 [英] AWS route53 hosted zone settings

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

问题描述

我已经在AWS route53上注册了一个域名.域名是invatxxx.com 我有一个ec2实例,在那台机器上有一个apache服务器和Drupal网站. ec2实例的弹性IP地址为xx.xx.66.245.我可以从IP地址访问该网站. 该域具有以下服务器名称:

I have registered a domain name on AWS route53. The domain name is invatxxx.com I have an ec2 instance, on that machine an apache server and Drupal web site. The ec2 instance has an elastic ip address xx.xx.66.245. I can access the website from the IP address. The domain has the following server names:

  • ns-xx.awsdns-xx.net
  • ns-x5.awsdns-x1.com
  • ns-x3.awsdns-x2.co.uk
  • ns-xx1.awsdns-x3.org

我已经创建了一个以域名为域名的托管区域,在" NS –名称服务器"记录集中,我从注册的域中添加了服务器名称. 在" SOA –授权开始"记录集中,我添加了"

I have created a hosted zone with a name as the domain name, to 'NS – Name server' record set I added the server names from the registered domain. To 'SOA – Start of authority' record set i added the '

ns-xx1.awsdns-x3.org. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400

ns-xx1.awsdns-x3.org. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400

'表示有价值. 对于' A-ipv4地址'记录集,我在域名之前添加了'www',并为实例设置了弹性IP地址. 我为此实例使用了另一个域名,并且该域名有效,我还从 https://letsencrypt.org/表示旧域名.但是,当我尝试更改域名时,它不起作用. 您知道我的设置有什么问题吗?

' at value. for 'A - ipv4 address' record setI added the 'www' before the domain name and for value the elastic IP address of the instance. I had another domain name for this instance and it worked, I also added SSL certificate from https://letsencrypt.org/ for the old domain name. But when I tried to change the domain name it did not work. Any ideas what it is wrong with my settings?

推荐答案

创建托管区域时-默认情况下会创建SOA记录和NS记录;不要编辑它们.
现在,您必须先为域"invatxxx.com"添加A记录,然后再为其他任何主机名添加A记录.请参见下面的屏幕截图,并注意您必须将名称"字段留空(您会发现它自动以不可编辑的文本invatxxx.com结尾):

When you create a hosted zone -- an SOA record and an NS record are created by default; do not edit them.
Now you must first add an A record for your domain 'invatxxx.com' before adding any more A record for any other hostname. See the screenshot below and note that you must leave the "Name" field blank (you will find it automatically ending with uneditable text invatxxx.com):

此时,您的网站应该可以访问 http://invatxxx.com/.
如果您希望您的网站也可以在 http://www.invatxxx.com/上访问,则添加CNAME记录,以使"www.invatxxx.com"成为"invatxxx.com"的别名.请参见下面的屏幕截图,请注意,这次您不得将名称"字段留空,并且值"字段应使用"invatxxx.com"填充:

At this point your website should be accessible at http://invatxxx.com/.
In case you want your website to be available at http://www.invatxxx.com/ also, then add a CNAME record to make 'www.invatxxx.com' an alias of 'invatxxx.com'. See the screenshot below and note that you must not leave the "Name" field blank this time and that "Value" field should be filled with 'invatxxx.com':

此时,您的网站应该可以在 http://www.invatxxx.com/上以以下方式访问:好吧.

At this point your website should be accessible at http://www.invatxxx.com/ as well.

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

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