Pass Host header for custom errors
This commit is contained in:
parent
03b67cb436
commit
4e14b809df
1 changed files with 2 additions and 0 deletions
|
@ -609,6 +609,7 @@ http {
|
||||||
proxy_set_header X-Code 404;
|
proxy_set_header X-Code 404;
|
||||||
{{ end }}
|
{{ end }}
|
||||||
set $proxy_upstream_name "upstream-default-backend";
|
set $proxy_upstream_name "upstream-default-backend";
|
||||||
|
proxy_set_header Host $best_http_host;
|
||||||
{{ if $all.DynamicConfigurationEnabled }}
|
{{ if $all.DynamicConfigurationEnabled }}
|
||||||
proxy_pass http://upstream_balancer;
|
proxy_pass http://upstream_balancer;
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
@ -706,6 +707,7 @@ stream {
|
||||||
proxy_set_header X-Ingress-Name $ingress_name;
|
proxy_set_header X-Ingress-Name $ingress_name;
|
||||||
proxy_set_header X-Service-Name $service_name;
|
proxy_set_header X-Service-Name $service_name;
|
||||||
proxy_set_header X-Service-Port $service_port;
|
proxy_set_header X-Service-Port $service_port;
|
||||||
|
proxy_set_header Host $best_http_host;
|
||||||
|
|
||||||
set $proxy_upstream_name "upstream-default-backend";
|
set $proxy_upstream_name "upstream-default-backend";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue