<p>I'm attempting to set up a path rewriting ingress to my backend service using the following:</p>
<ul>
<li>Kubernetes NGINX ingress controller (<a href="https://kubernetes.github.io/ingress-nginx" rel="nofollow noreferrer">https://kubernetes.github.io/ingress-nginx</a>), version 1.6.4 (built on Nginx 1.21.6)</li>
<li>Running in Docker Desktop 4.9.0 with Kubernetes 1.24.0</li>
</ul>
<p>I've deployed my service and the ingress controller using Helm.  When I describe the Ingress resource, it looks exactly like <a href="https://kubernetes.github.io/ingress-nginx/examples/rewrite/" rel="nofollow noreferrer">this example</a>, but with a few extra labels from Helm.</p>
<p>When I attempt to GET or POST to any resource (existing or not) that matches the regex using curl (using a path starting with <code>/something</code>), I get a HTTP 400 response.  Logging on my backend service shows that it never received the request.  When I attempt to hit any other nonexistent path, I get a HTTP 404 from nginx, which is expected.</p>
<p>How do I resolve the HTTP 400s and get nginx to forward the traffic to my service?  I'm guessing there's something missing from either my nginx config or from the ingress controller config, but I don't see anything obvious in the docs.</p>

Mark
<p>Try these <a href="https://kubernetes.github.io/ingress-nginx/troubleshooting/" rel="nofollow noreferrer">troubleshooting</a> steps which will help you to resolve your issue.</p>
<p>1.Check whether your ingress controller has configured to respect the proxy protocol settings in the LB</p>
<p>2.Check if you added the <a href="https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#use-proxy-protocol" rel="nofollow noreferrer">proxy protocol</a> directive to your configmap.</p>
<p>3.If the issue is still not resolved then you need to add extra args to the config map  as below:</p>
<pre><code>extraArgs:
  # - --enable-skip-login
  - --enable-insecure-login
  # - --system-banner=&quot;Welcome to Kubernetes&quot;
</code></pre>
<p>Attaching the <a href="https://github.com/kubernetes/dashboard/issues/7201" rel="nofollow noreferrer">Git Issue</a> which addresses a similar issue.</p>
