ERR_CONNECTION_REFUSED Checklist for VPS Websites

halfbrain_logo512adminJune 12, 2026
169 lượt xem

ERR_CONNECTION_REFUSED Checklist for VPS Websites

ERR_CONNECTION_REFUSED means the browser tried to connect to your server, but the connection was refused. This can happen when Nginx is not running, the firewall blocks the port, DNS points to the wrong IP, the VPS service is down or no application is listening on port 80 or 443.

Common causes

  • Nginx is stopped.
  • Firewall blocks HTTP or HTTPS.
  • DNS points to the wrong server.
  • The VPS is offline.
  • The application is not listening on the expected port.
  • Cloudflare proxy is pointing to a broken origin.

Checklist

  1. Check if the VPS is online from the provider dashboard.
  2. Confirm the domain points to the correct VPS IP.
  3. Try opening the VPS IP directly in the browser.
  4. Check Nginx status.
  5. Check whether ports 80 and 443 are open.
  6. Check UFW firewall rules.
  7. Check Nginx config syntax.
  8. Review recent firewall or Nginx changes.
  9. Temporarily pause Cloudflare proxy if needed for testing.
  10. Reload or restart the correct service after fixing the cause.

Final check

Connection refused is a network or service availability issue. Start with VPS status, DNS, firewall and web server status before changing WordPress or application settings.

Checklist Type Troubleshooting
Level Beginner
Risk Level High Risk
Estimated Time 20–45 minutes

When to Use This Checklist

Use this checklist when a website on a VPS shows ERR_CONNECTION_REFUSED in the browser.

Required Tools

Domain access, VPS provider console, SSH access, Nginx, UFW firewall, DNS access, Cloudflare access if used

Structured Checklist Steps

  1. Check VPS power status.
  2. Confirm domain DNS points to the VPS IP.
  3. Test direct IP access.
  4. Check Nginx status.
  5. Check UFW status.
  6. Allow ports 80 and 443 if needed.
  7. Run nginx -t.
  8. Check if Cloudflare proxy is hiding the origin issue.
  9. Reload Nginx.
  10. Test again in browser.

Verification Steps

  1. Open the domain over HTTP and HTTPS.
  2. Confirm Nginx is active.
  3. Confirm firewall allows 80 and 443.
  4. Confirm DNS resolves to the correct IP.

Rollback Plan

If firewall changes block access, log in using the VPS provider console and disable or correct the firewall rules.

Common Mistakes

  • Changing WordPress settings before checking Nginx.
  • Forgetting to open port 443.
  • Testing through Cloudflare without checking origin.
  • Pointing DNS to an old VPS IP.
  • Restarting random services without checking status.

Related Commands

sudo systemctl status nginx
sudo ufw status
sudo ufw allow 80
sudo ufw allow 443
sudo nginx -t
sudo systemctl reload nginx
dig example.com

Share:

Disclaimer: The guides, checklists, commands, and examples on HalfBrain.net are provided for educational and operational reference only. Server environments, hosting providers, software versions, security settings, and WordPress configurations can vary, so you should always review commands before running them on your own system. We do our best to keep the content accurate and useful, but we cannot guarantee that every command, configuration, or recommendation will fit every environment. Always back up your website, database, and server configuration before making changes. HalfBrain.net is not responsible for data loss, downtime, security incidents, misconfiguration, or other issues that may result from applying the information on this website. Use the material at your own discretion.

Leave a Reply

Your email address will not be published. Required fields are marked *