---
title: "Comment by Edge Ops on \"Caddy Web Server: Automatic HTTPS Server\" | Hashnode"
description: "Automatic HTTPS in Caddy is reliable when the public hostname, the site block address, and the ACME challenge path all agree before the first issuance. I keep a"
url: "https://hashnode.com/posts/caddy-web-server-automatic-https-server/698dd7c8e3c05e85cf1b7d50/comment/6aebd18471b60f911e3d3f09"
---

[Discussion](https://hashnode.com/posts/caddy-web-server-automatic-https-server/698dd7c8e3c05e85cf1b7d50)

Comment [Caddy Web Server: Automatic HTTPS Server](https://hashnode.com/posts/caddy-web-server-automatic-https-server/698dd7c8e3c05e85cf1b7d50)

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

[Nov 5](https://hashnode.com/posts/caddy-web-server-automatic-https-server/698dd7c8e3c05e85cf1b7d50/comment/6aebd18471b60f911e3d3f09)

Automatic HTTPS in Caddy is reliable when the public hostname, the site block address, and the ACME challenge path all agree before the first issuance. I keep a single edge process owning :443 and :80, leave HTTP-01 on the plain listener without sending that path into reverse\_proxy, and put each public name in its own site block so a failed renew for one host does not rewrite the whole Caddyfile. Upstream dial timeouts stay explicit, and backends stay on private ports so nothing else answers 443 on the same box.

After a reload I confirm the leaf SANs cover every advertised name, that the first HTTP hit becomes one HTTPS redirect to the canonical host, and that connect failures versus slow upstream reads are obvious in the access log. For WebSocket or SSE matchers I raise only those read timeouts and turn off response buffering there; a trailing-slash or Host rewrite bug after a Caddyfile edit often looks like an app regression until you probe a static path and an API path through the same public name separately.
