Our admin informed me that we are running following nginx-ingress on our rancher kubernetes cluster: rancher/nginx-ingress-controller:0.16.2-rancher1 So i am not sure what native ingress-nginx version it is using.
We get strange behavior for the url rewrite that parts of the url are repeated.
Our ingress rule with the test results:
If i do the same as in the documentation of https://kubernetes.github.io/ingress-nginx/examples/rewrite/ but with an nginx-alpine i have following behavior seen in the nginx log. I mention rewrite.bar.com here to compare it to the example more easily. I tested it with my specific host name.