With requested changes.

This commit is contained in:
Robin Millette 2020-06-03 22:13:50 -04:00
parent 791a827492
commit 37940e728d

View file

@ -156,20 +156,11 @@ Custom error pages can be accomplished with [`handle_errors`](/docs/caddyfile/di
``` ```
errors { errors {
404 404.html # Not Found 404 404.html
500 500.html # Internal Server Error 500 500.html
} }
``` ```
or
```
errors {
* default_error.html
}
```
- **v2:**: - **v2:**:
``` ```
@ -179,15 +170,6 @@ handle_errors {
} }
``` ```
or even
```
handle_errors {
rewrite * /{http.error.status_code}
reverse_proxy https://http.cat
}
```
### ext ### ext
Implied file extensions can be done with [`try_files`](/docs/caddyfile/directives/try_files). Implied file extensions can be done with [`try_files`](/docs/caddyfile/directives/try_files).