Fix www certificate error when the apex domain works

Error: www.domain.com cert error but apex works

The root domain has a valid cert but www. throws a cert error.

Coolify does not auto-include the www subdomain. If you only added the apex, Traefik has no router or cert for www.

The fix

  1. In Coolify → app → Settings → Domains, add https://www.your-domain.com as a SECOND domain alongside the apex.

  2. Make sure a DNS record for www exists and resolves to the VPS:

    dig +short www.your-domain.com @8.8.8.8   # should return <your-vps-ip>
  3. Redeploy. Traefik will request a cert covering www on the next request.

Related Coolify errors

Have Emsden Studio fix it for you — from A$149

All Coolify deploy errors