caddy-filter
caddy-filter copied to clipboard
filter with erroes pages
Do you know if we can use filter for errors page ?
errors {
* errors_pages/error_page.html
}
filter rule {
path "errors_pages/error_page.html"
search_pattern "ERROR_CODE"
replacement "{status}"
}
I don't know to enable this (right now) because the error pages are outside the scope of the filter rule - or better: Before the filter rule. This means the filter rule cannot intercept the error pages.