docs: v2.6.2 changes

This commit is contained in:
Francis Lavoie 2022-10-17 13:53:08 -04:00
parent 5282fbd6ff
commit 0d05c7bf19
No known key found for this signature in database
GPG key ID: 29B92EA7430C3C62
2 changed files with 14 additions and 7 deletions

View file

@ -64,14 +64,13 @@ If you want to provide custom error pages only for some error codes, you can che
```caddy-d
handle_errors {
@custom_err file /err-{http.error.status_code}.html /err.html
@custom_err file /err-{err.status_code}.html /err.html
handle @custom_err {
rewrite @custom_err {http.matchers.file.relative}
rewrite * {file_match.relative}
file_server
}
respond "{http.error.status_code} {http.error.status_text}"
respond "{err.status_code} {err.status_text}"
}
```
Reverse proxy to a professional server that is highly qualified for handling HTTP errors and improving your day 😸: