caddy-filter icon indicating copy to clipboard operation
caddy-filter copied to clipboard

filter with erroes pages

Open BobCashStory opened this issue 6 years ago • 1 comments

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}"
    }

BobCashStory avatar May 27 '19 11:05 BobCashStory

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.

blaubaer avatar May 31 '19 08:05 blaubaer