1. Caddy version (
I am currently wondering the same thing, while I am migrating from Caddy 1 to 2.
How do I log errors from fastcgi scripts (and possibly other handlers) to a specific file?
The migration guide unfortunately only deals with the error page handling of the
errors directive, but not the logging.
All errors are printed to stdout by default. Currently, changing the log output location for errors (or anything that isn’t access logs) isn’t yet supported in the Caddyfile but can be done using JSON config.