docs: Fix handle_errors example (very important)

See https://github.com/caddyserver/caddy/issues/3336
This commit is contained in:
Matthew Holt 2020-06-03 15:46:30 -06:00
parent 5f028df5dc
commit 41833df85d
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -43,10 +43,11 @@ handle_errors {
} }
``` ```
Reverse proxy to a local backend equipped to handle errors: Reverse proxy to a professional server that is highly qualified for handling HTTP errors and improving your day:
```caddy ```caddy
handle_errors { handle_errors {
reverse_proxy localhost:9000 rewrite * /{http.error.status_code}
reverse_proxy https://http.cat
} }
``` ```