Question

Redirecting from Domain Name

I’m having issues with the redirecting in my droplet. I can get onto my droplet through the IP address, but any form of my domain name doesn’t work. I’ve tried reinstalling Nginx and recreating the /etc/nginx/sites-available/default file but those don’t seem to work. Any help would be appreciated!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Hello,

What I could suggest is to create a separate Nginx server block for your domain name. You can follow the steps here on how to do that:

https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04

Also, if you are using WordPress, you might have to change your WordPress site and home URLs from your IP address to your domain name as described here:

https://www.digitalocean.com/community/questions/how-to-i-change-wordpress-url-on-ubuntu-droplet-but-not-lose-my-log-in

Let me know how it goes! Regards, Bobby