From 6d648596ee6015d29806a4b8e48e5d6768906cfb Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Mon, 26 Apr 2021 16:07:04 -0400 Subject: [PATCH] docs: Clarify `file_server` behaviour inside `handle_errors` (#159) This was part of https://github.com/caddyserver/website/pull/154 which was incorrect, but I realized I had this part in it which is still relevant to keep. --- src/docs/markdown/caddyfile/directives/handle_errors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/markdown/caddyfile/directives/handle_errors.md b/src/docs/markdown/caddyfile/directives/handle_errors.md index 6e1493b..198ee2c 100644 --- a/src/docs/markdown/caddyfile/directives/handle_errors.md +++ b/src/docs/markdown/caddyfile/directives/handle_errors.md @@ -29,7 +29,7 @@ handle_errors { ## Examples -Custom error pages based on the status code (i.e. a page called `404.html` for 404 errors): +Custom error pages based on the status code (i.e. a page called `404.html` for 404 errors). Note that [`file_server`](file_server) preserves the error's HTTP status code when run in `handle_errors`: ```caddy-d handle_errors {