title: Kubernetes Ingress Nginx Not Resolve Non Root Path
body: <p>I've setup the haproxy with kubernetes ingress controller <a href="https://github.com/nginxinc/kubernetes-ingress" rel="nofollow noreferrer">https://github.com/nginxinc/kubernetes-ingress</a> and everything works fine when I try to resolve the root path <a href="http://example.com" rel="nofollow noreferrer">http://example.com</a>, but if I try to resolve any subpath <a href="http://example.com/blue" rel="nofollow noreferrer">http://example.com/blue</a> I always get not found 404. Please any idea why the sub-paths are not working? Below my haproxy config and ingress resource. Thanks.</p>
  
  <p>haproxy.cfg</p>
  
  <pre><code>frontend http_front
    bind *:80
    stats uri /haproxy?stats
    default_backend http_back
  
  backend http_back
    balance roundrobin
    server kube 192.168.1.10:80
  </code></pre>
  
  <p>ingress-resource.yaml</p>
  
  <pre><code>apiVersion: networking.k8s.io/v1beta1
  kind: Ingress
  metadata:
    name: ingress-resource
    annotations:
      nginx.ingress.kubernetes.io/rewrite-target: /
      kubernetes.io/ingress.class: nginx
  spec:
    rules:
    - host: example.com
      http:
        paths:
        - path: /blue
          backend:
            serviceName: nginx-deploy-blue
            servicePort: 80
  </code></pre>