By prask5
I just transferred DNS for my domain to DO. I also setup Nginx and ensured that it was allowed through ufw. I can ssh into my server but for some reason, the website does not load and I cannot ping the server. I thought DNS transfer might take some time but even using the IP in the browser, it just times out. I can ssh into it using the domain name so I know that is setup properly. Any suggestions?
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!
Hi @prask5,
It seems like your Nginx service is not running properly. In order to check that, please enter your droplet and type in the following
service nginx status
It’s highly probable it’s not actually working. It will say something along the lines of failed. If it has, try to start it again by doing
service nginx start
If it fails, you can check why it does in your journalctl by doing so
journalctl -xe
Another source of information would be your nginx error_log which should be located in your Nginx folder - /etc/nginx/
Regards, KDSys
Hello, thank you. The journalctl -xe did not show any issues with nginx.
Nginx status was active and didn’t report any errors. The nginx error log was blank. I tried the ‘sudo nginx -t’ command and it said that the configuration files are successful.
I do have an access block setup for another website and checked that the configuration there is also correct. I disabled it in in my /etc/nginx/sites-enabled and reloaded the webserver, still didn’t load my default site.
I finally restarted nginx and still no luck.
Visiting the website internally from behind the firewall does still work.
OK, I solved the issue. I had a firewall on my Droplet. This thread helped me consider that also: https://www.digitalocean.com/community/questions/website-cant-be-reached
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.