Report this

What is the reason for this report?

SSH works but web server and ping do not

Posted on December 17, 2019

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!

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.

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

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.