Caddy Web Server: The Basics and What It Can Do

Caddy is a powerful, enterprise-ready, open-source web server written in Go. Its headline feature is automatic HTTPS: the moment you point a domain at Caddy, it automatically obtains, installs, and renews TLS certificates from Let’s Encrypt — no configuration, no separate tooling, no expiring certificates to babysit. As of late 2026, the current stable release line is Caddy v2.11.x, with regular releases shipping performance improvements, security patches, and new features.

Why Caddy Exists

Traditional web servers like Apache and Nginx require extensive configuration, often spanning multiple files, with separate processes or scripts needed for TLS certificate management. Caddy takes a different philosophy: sensible defaults and simplicity first. A fully functional HTTPS site can be served with a single-line configuration, making it attractive for developers, hobbyists, and teams who want to ship without wrestling server configuration.

Key Features

Automatic HTTPS by default. Unlike its predecessors, Caddy does not serve plain HTTP unless you ask it to. It automatically provisions certificates via ACME, handles renewals in the background, and gracefully falls back if a certificate cannot be obtained. It also supports custom certificate authorities, self-signed certificates, and static certificates for environments where ACME isn’t viable. Simple configuration. Caddy uses the Caddyfile, a human-readable, minimal configuration format. For example, serving a site over HTTPS with a reverse proxy backend might look like:
example.com {
    root * /var/www/html
    file_server
    reverse_proxy /api/* api.example.com:8080
}
That’s genuinely all that’s needed. For more complex setups, a full JSON configuration (available over the admin API) supports programmatic management. Modern protocol support. Caddy ships with HTTP/2 and HTTP/3 (QUIC) support out of the box, along with TLS 1.3, OCSP stapling, and HSTS — features that on other servers often require extra configuration. Reverse proxy and load balancing. Caddy works as a reverse proxy in front of application backends (Node.js, Python, Go services, databases with HTTP interfaces, etc.), with support for load balancing, health checks, and retry logic. Extensibility through modules. Written in Go, Caddy is highly extensible. Developers can write plugins as Go modules compiled into the binary, covering everything from custom log formatting to authentication schemes and API gateways. The official module ecosystem includes features like rate limiting, basic/digest auth, JWT validation, WebSockets, and compression. Static site serving. Caddy handles static file serving with clean URLs, directory listings (opt-in), and efficient file caching, making it a lightweight choice for static sites and SPAs.

My Caddy use on Kecklers.com

Caddy was chosen for Kecklers.com because it provides a straightforward way to deliver the site securely while keeping the Node.js application behind a reverse proxy. It automatically obtains and renews Let’s Encrypt certificates for kecklers.com and www.kecklers.com, reducing the need to manage certificates manually or schedule separate renewal jobs. Caddy also redirects HTTP requests to HTTPS, helping protect information exchanged between visitors and the website. Both domain names serve the same application, so visitors can use either address. In this deployment, Caddy runs alongside the application in a rootless Podman pod and forwards requests to the app on its internal port. The pod exposes its web ports only on the host’s loopback interface, while separate systemd forwarders accept public traffic on ports 80 and 443. This arrangement avoids requiring the rootless pod to bind privileged ports directly and keeps the application port from being publicly exposed. Caddy’s certificate and configuration data are stored persistently, so they survive pod replacement. Its configuration is compact and supports response compression, making the deployment easier to maintain. Successful certificate issuance and renewal still depend on correct DNS, reachable public ports, and a running Caddy instance; Caddy does not replace firewall or host setup requirements.