handle_errors: use replace_status for proxy example (#315)

This commit is contained in:
Syahrial Agni Prasetya 2023-04-14 19:27:05 +07:00 committed by GitHub
parent 4411a7015d
commit 6e83f75a99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,6 +80,7 @@ handle_errors {
rewrite * /{err.status_code}
reverse_proxy https://http.cat {
header_up Host {upstream_hostport}
replace_status {err.status_code}
}
}
```