mirror of
https://github.com/caddyserver/website.git
synced 2025-04-20 20:16:16 -04:00
handle_errors: use replace_status
for proxy example (#315)
This commit is contained in:
parent
4411a7015d
commit
6e83f75a99
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ handle_errors {
|
||||||
rewrite * /{err.status_code}
|
rewrite * /{err.status_code}
|
||||||
reverse_proxy https://http.cat {
|
reverse_proxy https://http.cat {
|
||||||
header_up Host {upstream_hostport}
|
header_up Host {upstream_hostport}
|
||||||
|
replace_status {err.status_code}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue