mirror of
https://github.com/caddyserver/website.git
synced 2025-05-06 19:57:13 -04:00
Replace status code if proxying error to external service.
This commit is contained in:
parent
4411a7015d
commit
0cf251445d
1 changed files with 1 additions and 0 deletions
|
@ -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}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue