How do I point my domain to my website that’s hosted on an AWS EC2?

The registrar for my domain is godaddy, I go to their DNS records section and I changed the A name to the elastic IP associated with my instance. Now when I type my domain in the browser, my website appears! However, it forwards it to the IP of my server.

Things I’ve tried (whether logical or not):

  1. I’m using wordpress multsite so I changed the DOMAIN_CURRENT_SITE in wp-config.php to my new domain. No luck. Reverted.
  2. I changed the ‘site_url’ and ‘home’ in my database to point to my domain. No luck. Tried one at a time etc. Reverted.
  3. Changed ServerName to my new domain in httpd.conf (apache).
  4. sudo hostname www…. (don’t know what that does)

So I’d like to simply have my website open without it showing the IP in the address bar. Can someone help?

Thanks

Read more here: How do I point my domain to my website that’s hosted on an AWS EC2?

Leave a Reply

Your email address will not be published. Required fields are marked *