ERR_CONNECTION_REFUSED Checklist for VPS Websites

halfbrain_logo512adminJune 12, 2026
1 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.

Estimated Time

20–45 minutes

Use Case

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


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
See also  VPS Full Disk Checklist for WordPress Websites

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 *