Fix · nginx
Fix “Served over HTTPS” on nginx
Install a TLS certificate (free via Let's Encrypt) and redirect all http:// traffic to https://.
server {
listen 80;
server_name _;
return 301 https://$host$request_uri;
}
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: Apache · Caddy · Express / Node · Cloudflare