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):
- I’m using wordpress multsite so I changed the DOMAIN_CURRENT_SITE in wp-config.php to my new domain. No luck. Reverted.
- I changed the ‘site_url’ and ‘home’ in my database to point to my domain. No luck. Tried one at a time etc. Reverted.
- Changed ServerName to my new domain in httpd.conf (apache).
- 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?