Kavach

Fix · Caddy

Fix “Served over HTTPS” on Caddy

Install a TLS certificate (free via Let's Encrypt) and redirect all http:// traffic to https://.

yoursite.com {
  redir https://{host}{uri} permanent
}

Verify the fix

Re-run the Served over HTTPS check after deploying. Test config changes in staging first and keep a rollback: a wrong header can break a site faster than a missing one.

Other stacks: nginx · Apache · Express / Node · Cloudflare

Scan your site free → Monitor it continuously