Skip to content
Open-source cPanel Varnish cache

ReefCache

An open-source Varnish caching layer for cPanel & WHM servers — built for modern AlmaLinux, Ubuntu and CloudLinux hosting stacks.

AlmaLinux 8/9/10 Ubuntu 22.04/24.04 CloudLinux ready cPanel & WHM

Why it exists

A modern face for server-side WordPress caching.

ReefCache gives hosting operators a clean, auditable replacement path for legacy cPanel Varnish integrations while keeping Apache and WHM in control.

Fast cache hits

Varnish handles cacheable 200/301/302 responses at the edge and keeps dynamic traffic flowing safely to Apache.

🔐

SSL aware

Hitch terminates TLS and passes PROXY data so cPanel vhosts, HTTPS detection and real visitor IPs behave correctly.

🧭

WHM friendly

Designed around EasyApache, cPanel Apache ports, WHM hooks, certificate sync and the realities of shared hosting servers.

🛡️

Open and auditable

Simple shell, Python, VCL and PHP components make the stack easy to inspect, fork, repair and uninstall.

🪶

Apache remains origin

ReefCache sits in front of cPanel Apache instead of replacing it, preserving normal hosting workflows.

Operator first

Built for root admins who want predictable commands, readable config files and reversible changes.

Architecture

TLS, cache and Apache — each doing one job well.

The intended production flow is transparent and easy to debug: visitors reach Hitch on 443, Varnish caches on 80, and Apache serves origin traffic on non-public cPanel ports.

Step 1VisitorHTTPS request
Step 2HitchTLS + PROXY protocol
Step 3Varnishcache decision
Step 4ApachecPanel origin

Install path

Made for cautious production admins.

Before running any installer, test on a disposable cPanel server, keep WHM access open, snapshot the VPS and confirm firewall rules for ports 80 and 443.

  • Detects supported RHEL-like and Ubuntu platforms.
  • Moves Apache origin ports and deploys Varnish/Hitch configuration.
  • Syncs cPanel Apache TLS certificates into Hitch PEM files.
  • Includes an uninstall path to revert to Apache-only operation.
root shell
# review first, run second
git clone https://github.com/YOUR-ORG/reefcache.git
cd reefcache
less install.sh
bash install.sh

# verify response headers
curl -I https://your-domain.tld/
x-reefcache-cache: HIT

FAQ

The short version Google and humans can understand.

What is ReefCache?

ReefCache is an open-source Varnish caching and SSL proxy integration for cPanel & WHM servers.

Is it a WordPress plugin?

No. It is server-side caching in front of Apache. WordPress benefits from faster anonymous page delivery, but the cache sits at the server layer.

Does it replace Apache?

No. Apache remains the cPanel origin web server while Varnish and Hitch handle public traffic in front of it.

Is it affiliated with Cachewall or xVarnish?

No. ReefCache is an independent open-source project intended to provide a transparent modern replacement path for similar server-cache workflows.