diff --git a/pkg/server/handler/handler.go b/pkg/server/handler/handler.go index 1b1ed588c8..c5c5ed1ba2 100644 --- a/pkg/server/handler/handler.go +++ b/pkg/server/handler/handler.go @@ -87,6 +87,7 @@ func HandlerWithErrorResponder(prefix string, cfg *rest.Config, transport http.R proxy := proxy.NewUpgradeAwareHandler(target, transport, false, false, responder) proxy.UpgradeTransport = upgradeTransport proxy.UseRequestLocation = true + proxy.UseLocationHost = true // send backend hostname as Host header, not the client's vcluster LB hostname handler := http.Handler(proxy) if len(prefix) > 0 {