Web / Caddy Server Interview questions
What are Caddy modules?
Modules are the building blocks Caddy is assembled from - every capability, from serving files to proxying requests to issuing certificates, is implemented as a module that registers itself under a namespace, such as http.handlers.file_server or http.handlers.reverse_proxy.
The core Caddy binary bundles the standard set of HTTP, TLS, and logging modules that cover most use cases. Extra modules - like DNS provider plugins for wildcard certificates, or a rate-limiting handler - aren't loaded at runtime like typical plugins; they're compiled directly into a custom Caddy binary using the xcaddy build tool.
This module-based design is why the config JSON schema is organized by namespace, and why the Caddyfile can gain new directives simply by having a matching module compiled in.
More Related questions...