Domain redirects to IP address and also loading from IP address
Hi, I have a droplet running the latest ubuntu and wordpress. I set up everything like in the tutorials and my domain is working. But when I type in www.mydomain.com/wp-admin, it redirects itself to xx.xxx.123.456/wp-admin which is the IP address of the droplet that DigitalOcean gave me. Also, when I go to www.mydomain.com, my homepage loads just fine but I notice my browser says that its is connecting and waiting for xx.xxx.123.456, not www.mydomain.com itself. I may be unclear here so please ask for more info. I would not like to expose my IP address like that and also it looks extremely shady to my visitors. Please help! Thanks a lot!