Web / Caddy Server Interview questions
What is the difference between Caddy v1 and Caddy v2?
| Aspect | Caddy v1 | Caddy v2 |
| Architecture | Monolithic, directives hardcoded into the core | Modular; features are pluggable modules assembled via xcaddy |
| Native config | Caddyfile only | JSON is native; Caddyfile is adapted to JSON |
| Runtime API | Limited | Full admin API for live, partial config changes |
| License | Required a paid license for commercial use in some versions | Fully open-source (Apache 2.0) |
| Protocols | HTTP/1.1, HTTP/2 | Adds HTTP/3 (QUIC) support |
Caddy v2 was a ground-up rewrite rather than an incremental release, which is why Caddyfiles and plugins from v1 are not compatible with v2 without changes. Nearly all current production deployments and documentation refer to v2.
More Related questions...