curl -I https://example.com | grep -iE '^HTTP'

Category: VPS Management

curl -I https://example.com | grep -iE '^HTTP'

Verify the site answers with HTTP 200

curl -I sends a HEAD request (headers only), and the grep filters for the HTTP status line — the quick post-deploy proof that nginx, the app, and the certificate all answer. 200 means the site is live; 502 or 503 points at the app behind the proxy. Use -k to test before the certificate is valid.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.