Web / Caddy Server Interview questions
What is automatic HTTPS in Caddy?
Automatic HTTPS is the behavior where Caddy detects that a site block uses a publicly resolvable domain name and, without any extra directive, requests a TLS certificate for it, installs the certificate, and starts serving that site over HTTPS.
Under the hood, Caddy uses its embedded ACME client (built on the CertMagic library) to talk to Let's Encrypt by default, falling back to ZeroSSL if needed. It also issues an HTTP-to-HTTPS redirect on port 80, enables OCSP stapling, and renews the certificate automatically roughly a month before it expires.
Automatic HTTPS is skipped for local or non-public names like localhost or bare IP addresses, and it can be disabled per-site with the auto_https off global option if you need to manage TLS yourself.
More Related questions...