如何将 Godaddy 域与 AWS Elastic Beanstalk 环境链接? [英] How to link godaddy domain with AWS Elastic Beanstalk environment?

查看:25
本文介绍了如何将 Godaddy 域与 AWS Elastic Beanstalk 环境链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试将我的 Godaddy 域AWS Elastic Beanstalk 实例 链接起来时遇到了这个问题.我找到了很多关于如何将 EC2 实例 与 Godaddy 上的域链接起来的文档,但对于 Elastic Beanstalk 实例却没有.所以我最终得到了这个 URL:www.MY_SITE.elasticbeanstalk.com

这是我为 EC2 实例所做的:

  1. 我使用我的 Route 53 Hosted Zone 中的服务器更新了我 Godaddy 域上的域名服务器.
  2. 我在 EC2 控制台上创建了一个新的弹性 IP.
  3. 我回到 Godaddy 并使用 EC2 弹性 IP 更新了他们 DNS 管理器中的 DNS A @ 字段.
  4. 您通常需要等待 1 小时到 48 小时,它应该可以工作.

如何对 AWS Elastic Beanstalk 实例而不是 EC2 实例执行相同的操作?我无法看到我从 EC2 控制台创建的实例以将其链接到弹性 IP.

希望这足够清楚..有什么帮助吗?

解决方案

无需创建 CNAME 或进行任何转发 - 从 SEO 的角度来看这很糟糕,亚马逊不推荐.甚至你也不应该直接将记录指向IP——因为IP随时可以改变,这会给以后带来很多麻烦.

最优雅的方法是

  • 打开新添加的域名,找到NS记录并复制服务器:

  • 在 GoDaddy 的域管理器中,通过导出区域文件 (Windows)"导出记录.

  • 将这些记录导入 Route 53(导入区域文件"按钮).

  • 在 GoDaddy 的域管理器中设置自定义 DNS 域名服务器,在第二步获得:

  • 迁移可能需要一些时间(甚至数天).现在您可以将您的域与您的 Elastic Beanstalk 站点链接起来.为此,请在 Route 53 中选择/创建适当的 A 记录类型并为其设置别名:

    希望有帮助.

    I'm running into this problem trying to link my Godaddy domain with an AWS Elastic Beanstalk instance. I found a lot of documentation on how to link an EC2 instance with a domain on Godaddy but not for Elastic Beanstalk instance. So I ended up with this URL: www.MY_SITE.elasticbeanstalk.com

    Here is what I did for an EC2 instance:

    1. I updated the Nameservers on my Godaddy domain with the ones from my Route 53 Hosted Zone.
    2. I created a new Elastic IP on the EC2 console.
    3. I went back to Godaddy and updated the DNS A @ field from their DNS Manager, with the EC2 Elastic IP one.
    4. You normally have to wait 1h to 48h and it should work.

    How can I do the same for a AWS Elastic Beanstalk instance, not an EC2 one? I can't see the instance I created from my EC2 console in order to link it to an Elastic IP.

    Hope this is clear enough.. Any help?

    解决方案

    No need to create a CNAME or do any forwarding - this is bad from the point of SEO and not recommended by Amazon. Even you should not point a record to IP directly - it will cause a lot of troubles in the future because IP can be changed any moment.

    The most elegant way is to migrate DNS service from GoDaddy to Route 53. You still will be with GoDaddy, but handling requests for your site will be on Amazon's side.

    Here is what you need to do:

    1. Create a new Hosted Zone for your site in Route 53 console:

    2. Open newly added domain name, find NS record and copy servers:

    3. In GoDaddy's Domain Manager export records via "Export Zone File (Windows)".

    4. Import those records to Route 53 ("Import Zone File" button).

    5. In GoDaddy's Domain Manager set custom DNS nameservers, obtained on the 2nd step:

    Migrating might take some time (even days). Now you can link you domain with your Elastic Beanstalk site. To do so select/create proper A record type in Route 53 and set Alias for it:

    Hope it helps.

    这篇关于如何将 Godaddy 域与 AWS Elastic Beanstalk 环境链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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