Today I set up my site (via this tutorial). At first it was working, but now when I browse to my wesite it doesn’t work anymore.
However, I am able to connect to the IP address (or via the domain), and I can ping to it. Also I know that my node.js is running and so is my NginX, because when I curl at localhost:8080 via ssh I get the proper response.
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!
Are you certain that nginx is running? If you can ping, ssh and can see your site returned at port 8080 (Node’s process) but cannot load your site on the default ports 80/443 (Nginx process) I would recommend restarting nginx with:
service nginx restart
and checking your logs in /var/log/nginx/error.log to see if additional information about the issue was recorded there.
What does curl at localhost port 80 give? Any firewall? Selinux? When you say doesn’t work, what exactly happens? Times out? 404. These details will help troubleshooting.
This verifies that the server is working fine. Now your app needs to send some actual data that the browser can render such as an html markup / xml / json etc.
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.