You're meant to read https://caddyserver.com/docs/caddyfile/concepts#structure first, which explains that directives always go within a site block, and can sometimes be nested within other special directives like handle and route.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments