mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 12:36:16 -04:00
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.
This commit is contained in:
parent
6518711538
commit
6d648596ee
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ handle_errors {
|
||||||
|
|
||||||
## Examples
|
## 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
|
```caddy-d
|
||||||
handle_errors {
|
handle_errors {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue