By janxavierv17
I’ve setup my DO server with nginx. I was able to access the url www.jan-xv.online yesterday. I need help in figuring it out as to why I would get # This site can’t be reached whenever I go to my url www.jan-xv.online
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!
Accepted Answer
Hi there,
As far as I can see you are getting a connection refused on both port 80 and 443.
This is usually caused by either your webserver not running or your firewall blocking the access to those ports.
What you could do is to follow the steps from this guide here on how to troubleshoot common Nginx problems, and mainly:
Check Your Nginx Server Status:
Ensure that your Nginx server is running properly. You can check the status with the following command:
sudo systemctl status nginx
If Nginx is not running, you can start it with:
sudo systemctl start nginx
If there are errors in the Nginx configuration, you can test the configuration to see if there are issues:
sudo nginx -t
Feel free to share the output of the above commands if you need further assistance.
Check Firewall Rules:
sudo ufw status
sudo ufw allow 'Nginx Full'
Check DNS Settings:
Check the Droplet’s IP Address:
209.38.17.137
) is correct and matches the one configured in your DNS settings.Check Server Logs:
sudo tail -f /var/log/nginx/error.log
Let me know how it goes!
- 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.