← Back to all fixes
Connection refused on port 443 (HTTPS)
The Issue
`curl https://yourdomain.com` gives: `curl: (7) Failed to connect to yourdomain.com port 443`
Root Cause
Nginx is not listening on port 443. Either the SSL server block is missing, nginx is not reloaded after adding it, or firewall blocks 443.
How to Fix
Check what ports nginx listens on: `sudo ss -tlnp | grep nginx`Verify your nginx config has a `listen 443 ssl;` blockReload nginx after config changes: `sudo systemctl reload nginx`Open port in firewall: `sudo ufw allow 443` or the equivalent for your cloud security groupCheck certbot ran successfully and cert files exist at the referenced paths