如何将godaddy域与AWS Elastic Beanstalk环境联系起来? [英] How to link godaddy domain with AWS Elastic Beanstalk environment?

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

问题描述

我遇到这个问题,试图将我的 Godaddy域 AWS Elastic Beanstalk实例相链接。我发现了很多关于如何将一个 EC2实例与Godaddy的域连接的文档。但不是弹性Beanstalk实例。所以我最终得到这个URL:www.MY_SITE.elasticbeanstalk.com

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

这是我为一个EC2实例做的:

Here is what I do for a EC2 instance:


  1. 我使用我的路线53托管区域中更新我的Godaddy域名的 Nameservers

  2. 我在EC2控制台上创建一个新的弹性IP

  3. 我回到Godaddy,更新 DNS A @您的通常必须等待1小时至48小时才能运行。

  1. I update the Nameservers on my Godaddy domain with the ones from my Route 53 Hosted Zone.
  2. I create a new Elastic IP on the EC2 console.
  3. I go back to Godaddy and update 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.

如何为AWS弹性Beanstalk实例做同样的事情,而不是EC2?我看不到我从EC2控制台创建的实例,以便将其链接到一个弹性IP。

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

希望这是清晰的..任何帮助? p>

Hope this is cleaar enough.. Any help?

推荐答案

当我遇到将GoDaddy域与AWS ElasticBeanstalk相链接的问题时,我做了什么。

Here's what I did when I was facing the problem of linking a GoDaddy domain with AWS ElasticBeanstalk.

DNS管理员:


  • 记录 @ :64.202.189.170(即GoDaddy的转发IP btw)

  • Cname www :AWS EB域名(例如awseb-xyz.us-east-1.elb.amazonaws.com)

  • A record @: 64.202.189.170 (that is GoDaddy's forwarding IP btw)
  • Cname www: AWS EB domain (e.g. awseb-xyz.us-east-1.elb.amazonaws.com)

转发:


  • 将域转发到www.example。 com(仅限转发,无屏蔽)

  • 将子域转发到AWS EB域(例如awseb-xyz.us-east-1.elb.amazonaws.com)(带掩码)

为了访问没有www的网站(例如 http://example.com ),我不得不设置域的转发到www cname。这个www cname然后被转发到AWS EB域(用掩码来保持www.example.com在地址栏中)。

In order to access the site without www (e.g. http://example.com), I had to set up the forwarding of the domain to the www cname. This www cname then gets forwarded to the AWS EB domain (with masking in order to keep www.example.com in the address bar).

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

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