Question

SSH works but web server and ping do not

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?


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

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.

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