Closed gotsysdba closed 1 month ago
This issue is currently awaiting triage.
If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
@gotsysdba the issue description seems to be too succint or too short.
A new issue template asks questions that help readers get information that is actionable. Please check the new issue template and answer the questions that are asked there so that the issue descriptions becomes elaborate enough to help readers take some action.
/remove-kind bug
This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach #ingress-nginx-dev
on Kubernetes Slack.
Its been a year since any activity here and the issue description is too short to think up a action item. So I am closing this. /close
@longwuyuan: Closing this issue.
What happened:
Vanilla deployment... an application was redirecting to
http://<ip>:443
(proto/port mismatch). It was determined that the<ip>:<port>
was coming from theHost
header which was being set by:To resolve, the annotation nginx.ingress.kubernetes.io/upstream-vhost was used:
nginx.ingress.kubernetes.io/upstream-vhost: $host
The doco's state the annotation "... is useful if you need to call the upstream server by something other than $host".
What you expected to happen:
Based on the annotation doco,
proxy_set_header Host
should be set to$host
when it is actually set to$best_http_host
->$http_host
.Either the default setting is wrong or the doco is??
NGINX Ingress controller version
Kubernetes version
Server Version: v1.27.2
How was the ingress-nginx-controller installed:
Helm: repo: https://kubernetes.github.io/ingress-nginx version: 4.7.1
How to reproduce this issue:
Deploy using Helm, then run: