Report this

What is the reason for this report?

Redirecting from Domain Name

Posted on October 1, 2021

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!



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!

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.