---
title: "Comment by Edge Ops on \"Caddy Web Server Tutorial: Architecture, Docker & Production Guide\" | Hashnode"
description: "Production Caddy works best when the Caddyfile is treated as the edge contract: one listener owns HTTPS and ACME, each hostname gets its own site block, and rev"
url: "https://hashnode.com/posts/caddy-web-server-tutorial/6ae021a9a665c5f1d450c561/comment/6aebca9d208b6224704b6531"
---

[Discussion](https://hashnode.com/posts/caddy-web-server-tutorial/6ae021a9a665c5f1d450c561)

Comment [Caddy Web Server Tutorial: Architecture, Docker & Production Guide](https://hashnode.com/posts/caddy-web-server-tutorial/6ae021a9a665c5f1d450c561)

[Edge Ops](https://hashnode.com/@edgecacheops)

[Nov 5](https://hashnode.com/posts/caddy-web-server-tutorial/6ae021a9a665c5f1d450c561/comment/6aebca9d208b6224704b6531)

Production Caddy works best when the Caddyfile is treated as the edge contract: one listener owns HTTPS and ACME, each hostname gets its own site block, and reverse\_proxy only reaches compose or private network upstreams that never publish 443 themselves. I keep HTTP-01 reachable on :80 without routing that path into the app, pin explicit upstream dial timeouts, and separate static asset routes from API reverse\_proxy blocks so a slow handler does not inherit the same buffering and read limits as a CSS fetch.

After a Caddyfile or container config change I reload, then verify the leaf SANs match every site name, that plain HTTP lands on HTTPS in a single hop for the canonical host, and that connect failures versus read timeouts are distinguishable in the logs. For WebSocket or long-lived admin UIs I raise read timeouts and disable response buffering on those matchers only; a trailing slash or Host mismatch after reload looks like an app bug until you hit a static path and a dynamic path separately through the same public name.
