1. Output of caddy version
:
v2.6.2 h1:wKoFIxpmOJLGl3QXoo6PNbYvGW4xLEgo32GPBEjWL8o=
2. How I run Caddy:
I have many sites in my Caddyfile, to make two examples:
(handle_errors) {
handle_errors {
respond "{http.error.status_code} {http.error.status_text}"
}
}
nognu.de {
import handle_errors
root * /var/www/nognu.de
}
etc…
What I would like to achieve to have the same logic for handle_errors like for handle_logs but this does not work:
(handle_logging) {
log {
format console
format output file /var/log/caddy/{uri}
}
}
Or whatever I put on uri. I don’t want to duplicate the log a hundred times. Any hints?