Showing IP address in Address bar and not Domain Name

Posted October 9, 2013 7.4k views
Hi Friends, I created a droplet and updated the A record with the IP address at my Domain controller. I do not want to switch the name server as my emails are running there only want the website to be runn on droplet. Update was done and not website is showing IP address in address bar and not Domain name. I have another droplet as well where i updated Name servers and there is not issue but in this case its not working. In DNS on Digital Ocean I have A Record @ to point to IP address A @ I also created one more A record - IP address and Created CNAME like www - @ * - @ This is still showing IP address. Please help on this. This is really URGENT.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
6 answers

I tried this but its not working for me, I am experiencing the same issue

Please some one Help on this.
What (i) OS and (ii) web server are you using?
Hi Pablo,

I am using ubantu and with Ready made LAMP stack in digital ocean.

Check the contents of Apache's sites-enabled folder, i.e.
ls /etc/apache2/sites-enabled

Then look to see what's listed as the ServerName and ServerAlias, i.e.
cat /etc/apache2/sites-enabled/[file]
^^ Extending on Pablo's comment with something simple:
nano /etc/apache2/sites-enabled/default

to edit the default website file.