Skip to content
Beau Barker edited this page Jul 29, 2025 · 3 revisions

Caddy’s exec module lets you run shell scripts or commands as simple HTTP endpoints, with Caddy handling the response formatting. It’s ideal for lightweight tasks like triggering background jobs or returning basic JSON or text output.

If you want full control over the HTTP response — including status codes, headers, and body content, use CGI instead. It’s better suited for complex or dynamic responses.

Caddy

Clone this wiki locally