The Ultimate Server which makes your sites more secure, more reliable, and more scalable than any other solution.
Caddy is an open-source web server and reverse proxy written in a memory-safe language, designed with automated HTTPS and modular architecture at its core.
The principal functionalities of this tool include:
Automatic TLS Provisioning: Obtains and auto-renews TLS certificates by default for all managed sites.
On-Demand TLS: Dynamically provisions and maintains certificates on-the-fly during TLS handshakes, ideal for customer-owned custom domains and SaaS platforms.
Fleet Coordination & Scale: Manages certificates across hundreds of thousands of domains and automatically coordinates keys and OCSP staples across multi-instance clusters.
Internal PKI & Localhost: Generates locally trusted certificates for internal IPs and localhost using an automated, self-managed Certificate Authority (CA).
Resilient TLS Defaults: Automatically staples and caches OCSP responses and executes automatic renewals during mass certificate revocation events.
Multi-Protocol Support: Proxies traffic across HTTP, HTTPS, WebSockets, gRPC, and FastCGI.
High Availability & Dynamic Routing: Features active and passive health checks, load balancing policies (such as least connections), on-line retries, and dynamic backend discovery.
Hitless Configuration: Allows live configuration updates on-the-fly without dropping active connections.
Advanced Compression: Supports on-the-fly and precompressed file encoding using gzip and Zstandard (zstd).
Virtual File Systems: Serves static files from local storage, remote cloud storage, databases, or directly embedded inside the binary.
Built-in Directory Browser: Generates responsive directory listings with breadcrumb navigation when no index file is present.
RESTful JSON API: Uses a native JSON structure managed via a REST API with ACID guarantees for programmatic, safely scoped updates.
Human-Friendly Caddyfile: Offers a concise configuration format that typically requires a fraction of the lines needed by legacy NGINX configurations.
Config Adapters: Adapts configurations from NGINX, YAML, TOML, CUE, HCL, or database sources into Caddy's native representation.
Static Plugin System: Features a modular Go architecture where custom plugins are compiled directly into a single static binary for native execution speed.
FrankenPHP Integration: Acts as an embedded PHP application server, running PHP applications in-process without requiring a separate php-fpm daemon.