Fix · Apache
Fix “Served over HTTPS” on Apache
Install a TLS certificate (free via Let's Encrypt) and redirect all http:// traffic to https://.
<VirtualHost *:80>
RewriteEngine On
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
</VirtualHost>
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 · Caddy · Express / Node · Cloudflare