Site Suddenly Down? Check These 5 Places First

When a site goes down, restarting the server blindly is the slowest possible fix. This is an outside-in checklist with five places to look and commands you can copy: DNS, certificate, ports, application, external dependencies.

"The site is down" is a result, not a cause. There are a dozen different paths to it, and the universal first instinct — restart the server — is usually both useless and destructive to the evidence.

The right move is to narrow it down to one layer within three minutes: is the name not resolving, is the connection refused, is the certificate rejected, is the application throwing errors, or is it only broken for some people? The order below is the one I actually use — outside in, cheapest check first.

Step 0: read what the browser actually says

The error message is the cheapest clue you will get. Don't close the tab. Different messages point at completely different layers.

Browser saysLayer most likely brokenFirst move
Server IP not found / NXDOMAINDNS resolution or domain statusQuery a public resolver, then check if the domain expired
Connection refusedNothing listening / firewall rejectingCheck the process and the security group
Connection timed outNetwork, security group or firewall droppingProbe hop by hop
Your connection is not privateExpired cert, broken chain, or name mismatchCheck dates and the issued names
502 Bad GatewayThe app behind the proxy is not upRead nginx error log and backend process
504 Gateway TimeoutBackend too slow, or the database is stuckCheck slow queries, load, timeout config
403 / 404Permissions, paths or rewrite rulesRead the access log for the real request path

Place 1: DNS

Resolution is the first hop and the easiest one to forget you changed. Always compare a public resolver against the authoritative one — what your own laptop sees proves nothing.

# Resolve via public DNS (swap in your domain)
dig +short A example.com @223.5.5.5
dig +short A example.com @1.1.1.1

# Who is authoritative, and what is the TTL
dig example.com NS +short
dig example.com A +noall +answer

# Is the domain itself expired or on hold
whois example.com | grep -iE 'expir|status'
  • Results disagree between resolvers: propagation is still in flight, or one resolver is poisoned. Wait out the TTL or move providers.
  • Result points at an unfamiliar IP: records may have been changed. Check the domain console first, then account security.
  • Multiple CNAME hops (domain → CDN → origin): resolve each hop; any one breaking reads as "site is down".
  • Domain expired or on hold (clientHold / serverHold): resolution simply stops. Renew or appeal first.
  • Only some regions fail: that's carrier Local DNS caching — jump to place 5.

Place 2: certificate and HTTPS

Certificate faults are the classic "the site is fine but users are fleeing" case: the server is healthy, the browser shows a red warning page. Nothing needs restarting here — you just need to read the dates and the chain.

# Validity window and issued names
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
  | openssl x509 -noout -dates -subject -issuer

# Will it still be valid in 7 days?
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
  | openssl x509 -noout -checkend 604800 && echo 'valid for 7+ days'
  • Expired: reissue and reload the web server — then set up auto-renewal (see the other note).
  • Incomplete chain: phones and some browsers warn while desktop looks fine. That's a missing intermediate.
  • Name mismatch: cert covers www, users visit the bare domain.
  • CDNs need the cert too: origin updated, CDN not — users still see the old one.
  • Clock skew: if the server clock drifts far enough, validity maths breaks entirely. Sync NTP first.
HSTS is a force multiplier: once it's on, users don't even get an "ignore and continue" button when the cert breaks. If you enable HSTS, cert-expiry monitoring is not optional.

Place 3: is the server and port actually alive

This step answers "can packets arrive, and is anything listening". Plenty of people ping, see nothing, and declare the server dead — but a host with ICMP blocked pings nowhere while serving HTTP perfectly.

# What does HTTP actually return (don't just ping)
curl -I -sS -m 10 https://example.com/
curl -sS -o /dev/null -w 'code=%{http_code} ttfb=%{time_starttransfer}s\n' https://example.com/

# Is the port open
nc -vz example.com 443
ss -lntp | grep -E ':80|:443'

# Box health
uptime; df -h; free -m
  • Cloud security group: the classic "nothing changed and it broke" — a rule was deleted or overridden by policy.
  • Host firewall: firewalld / iptables / nftables drift, especially after installing something new.
  • Disk full: logs or backups fill the volume, and the web server fails in confusing ways (connects fine, returns 500).
  • Load spike: read load average, find the process — and don't restart yet, you'll lose the crime scene.

Place 4: the web server and the application

Port open, cert valid, page still errors — you're at the application layer. The answer is almost always in the logs.

# Service state and recent errors
systemctl status nginx --no-pager
tail -n 100 /var/log/nginx/error.log
tail -n 100 /var/log/nginx/access.log

# Backend (common examples)
systemctl status php-fpm --no-pager
docker ps -a
docker logs --tail 100 <container>
  • 502: the proxy can't reach the backend — dead process, wrong port, or saturated workers.
  • 504: backend didn't answer in time — slow query, hanging upstream call, or a timeout set too low.
  • 500: the app threw. Read the app log; nginx only shows one line about upstream.
  • Config change not applied: run nginx -t before reload — a bad reload fails silently.
  • Database unreachable: pool exhausted, password rotated, or data volume full — the whole site goes down at once.

Place 5: external dependencies, and "it's only broken for some people"

If it fails only in one region, on one carrier, or inside one app, your server is probably fine. This layer is the hardest to self-check and the easiest to misdiagnose as "we've been blocked".

  • CDN or WAF: origin config, cache rules and block policies can each affect a subset of requests. Compare by hitting origin directly.
  • ICP filing: unfiled or mismatched records get blocked on mainland nodes while overseas nodes work fine.
  • Page-level compliance: certain keywords, outbound links or unlicensed content trigger platform-side blocking that looks exactly like an outage.
  • In-app browsers (WeChat / QQ): they have their own caching and cert validation. If another browser works, it's this.
  • Client cache and hosts file: have the user try mobile data, a second browser, and a DNS flush — that clears half of all "fake outages".
On "are we blocked": I only do compliance-side checks and fixes (correct the filing, fix DNS, move to a compliant CDN, clean up violating content). Anything that circumvents regulatory controls is outside my scope and won't be offered.

The 5-minute order (just follow it)

  1. Establish the blast radius: different network, mobile data, a colleague in another city — everyone, or only some?
  2. dig once: public resolver vs authoritative, does it match the IP you expect?
  3. curl -I: the status code alone (200 / 301 / 403 / 502) points you somewhere completely different.
  4. Check cert dates: one openssl command kills the "not private" family.
  5. Read box health: load, disk, memory, key processes.
  6. Still stuck? Write down those five results verbatim and ask with them — a ticket that arrives with this gets answered twice as fast.

When to stop doing it yourself

Keep going alone and it usually costs more than calling someone when: a client is waiting, money or orders are involved, data might be lost, or you've already restarted twice with no change. What's valuable at that point isn't more commands — it's someone who can pick a direction immediately.

Remote diagnosis is ¥100 per case, with root cause and a plan inside two hours. If you'd rather never do this again, managed ops starts at ¥80/month: 24/7 monitoring with alerts, daily backups, certificate renewals handled for you, and incident response.

→ 中文版

Still stuck? Hand it to someone who watches servers daily

Remote diagnosis at ¥100 per case — root cause and a plan within 2 hours. Or hand it over on a managed plan from ¥80/month and take "site is down" off your list for good.

WeChat xiexbb · Telegram @kevinxie2008 · Remote-first, bilingual (ZH/EN)

Keep reading