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!
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:
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:
Let me know how it goes! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.