How to link godaddy domain with AWS Elastic Beanstalk environment?

前端 未结 4 1984
走了就别回头了
走了就别回头了 2020-11-29 15:24

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 h

4条回答
  •  情书的邮戳
    2020-11-29 16:17

    You should add a CNAME record to your Godaddy domain name that maps from www.yourGoDaddyDomain.com -> MY_SITE.elasticbeanstalk.com.

    That will direct requests to your domain name to the load balancer that is running in your elastic beanstalk environment. You don't want to route your domain name to a specific server (i.e. an elastic IP), you want it to go to the load balancer and that will route requests to your server(s). Since AWS Load balancers don't use IPs (they use domain names), you don't want to set up an A record for this - a CNAME record maps domain names to domain names.

    Look at the "Adding or Editing CNAMEs" section of the GoDaddy documentation on how to do this.

提交回复
热议问题