mirror of
https://github.com/caddyserver/website.git
synced 2025-04-28 07:56:16 -04:00
Strip headers when proxying errors to external service
This commit is contained in:
parent
968cdc3204
commit
57157d944f
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ Reverse proxy to a professional server that is highly qualified for handling HTT
|
||||||
handle_errors {
|
handle_errors {
|
||||||
rewrite * /{err.status_code}
|
rewrite * /{err.status_code}
|
||||||
reverse_proxy https://http.cat {
|
reverse_proxy https://http.cat {
|
||||||
|
header_up -*
|
||||||
header_up Host {upstream_hostport}
|
header_up Host {upstream_hostport}
|
||||||
replace_status {err.status_code}
|
replace_status {err.status_code}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue