Simple error handling with caddy

This commit is contained in:
2024-07-23 14:18:32 +02:00
parent 4609a4e033
commit f1dba7be06

View File

@@ -18,6 +18,14 @@ poc.athelas.fr {
ca https://acme-staging-v02.api.letsencrypt.org/directory
}
handle_errors {
rewrite * /{err.status_code}
reverse_proxy https://http.cat {
header_up Host {upstream_hostport}
replace_status {err.status_code}
}
}
}
# Refer to the Caddy docs for more information: