mirror of
https://github.com/caddyserver/website.git
synced 2025-05-07 04:07:13 -04:00
With requested changes.
This commit is contained in:
parent
791a827492
commit
37940e728d
1 changed files with 2 additions and 20 deletions
|
@ -156,20 +156,11 @@ Custom error pages can be accomplished with [`handle_errors`](/docs/caddyfile/di
|
|||
|
||||
```
|
||||
errors {
|
||||
404 404.html # Not Found
|
||||
500 500.html # Internal Server Error
|
||||
404 404.html
|
||||
500 500.html
|
||||
}
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```
|
||||
errors {
|
||||
* default_error.html
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
- **v2:**:
|
||||
|
||||
```
|
||||
|
@ -179,15 +170,6 @@ handle_errors {
|
|||
}
|
||||
```
|
||||
|
||||
or even
|
||||
|
||||
```
|
||||
handle_errors {
|
||||
rewrite * /{http.error.status_code}
|
||||
reverse_proxy https://http.cat
|
||||
}
|
||||
```
|
||||
|
||||
### ext
|
||||
|
||||
Implied file extensions can be done with [`try_files`](/docs/caddyfile/directives/try_files).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue