You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What keywords did you search in NGINX Ingress controller issues before filing this one? (If you have found any duplicates, you should instead reply there.): upstream_balancer, bad host
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
What you expected to happen: Custom error pages are rendered
How to reproduce it (as minimally and precisely as possible): Use ingress-nginx with custom error pages and spring boot based default backend
Anything else we need to know:
The issue seems to happen because of Host header contains invalid characters (in this case the underscore as per [RFC952]: https://www.rfc-editor.org/rfc/rfc952.txt) and tomcat seems to not take it well. The issue can be fixed by one of the following:
By modifying the upstream name to not contain the underscore
By setting host header
If we can decide on the solution I can create a PR.
The text was updated successfully, but these errors were encountered:
As a temporary solution, I have edited my nginx.tmpl to set Host header for custom errors. It will be really helpful if someone can take a look at the issue and suggest the correct approach to fix it (if required I can create PR to fix the issue)
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/.): No
What keywords did you search in NGINX Ingress controller issues before filing this one? (If you have found any duplicates, you should instead reply there.): upstream_balancer, bad host
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
NGINX Ingress controller version: 0.18.0
Kubernetes version (use
kubectl version
):Environment:
uname -a
):Linux ip-10-7-65-14 4.4.0-1066-aws #76-Ubuntu SMP Thu Aug 16 16:21:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
What happened: ingress-nginx with
custom-http-errors
and Java + Tomcat based default backend fails with 400 bad request because nginx rewrites theHost
header withupstream_balancer
as per https://github.com/kubernetes/ingress-nginx/blob/master/rootfs/etc/nginx/template/nginx.tmpl#L715What you expected to happen: Custom error pages are rendered
How to reproduce it (as minimally and precisely as possible): Use ingress-nginx with custom error pages and spring boot based default backend
Anything else we need to know:
The issue seems to happen because of
Host
header contains invalid characters (in this case the underscore as per [RFC952]: https://www.rfc-editor.org/rfc/rfc952.txt) and tomcat seems to not take it well. The issue can be fixed by one of the following:If we can decide on the solution I can create a PR.
The text was updated successfully, but these errors were encountered: