**Description**:

While testing the ingress configuration for the coffee deployment, I found that the intended routing is not working when accessed via a web browser. The deployment is defined in the ingresstest.yaml file and is expected to route traffic to the coffee application.

**Steps to Reproduce:**

Deploy the coffee application using the ingresstest.yaml file.
Set up the ingress controller to route traffic to the coffee application.
Access the coffee application via a web browser using the appropriate URL.
Expected Result:
<img width="613" alt="expected_image" src="https://github.com/kubernetes/ingress-nginx/assets/19824357/b1cd6c87-16b5-42f7-982d-535c672b480d">
The coffee application should be accessible and functional when accessed via the specified URL in the web browser.

**Actual Result:**
![actual_image](https://github.com/kubernetes/ingress-nginx/assets/19824357/3bd5ee8e-bd2a-4ba3-ae52-a55329eb0001)

The coffee application is not accessible via the web browser. The browser is unable to reach the coffee application through the specified URL and downloads json file



```

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
    name: hello-world-ingress-eastus2
    annotations:
      kubernetes.io/ingress.class: nginx
      nginx.ingress.kubernetes.io/ssl-redirect: "true"
      nginx.ingress.kubernetes.io/rewrite-target: /
spec: 
    tls:
    - hosts:
      - subsingresstest.cloudapp.azure.com
      secretName: hello-world-tls
    rules:
      - host: subsingresstest.cloudapp.azure.com
        http:
          paths:
          - path: /ingresstest
            pathType: Prefix
            backend:
              service:
                name: coffee-svc
                port: 
                  number: 80
```



Ingress Test Fails to Route Traffic to a Deployment in Browser
This is a GitHub Issue
repo:ingress-nginx
owner:kubernetes
Title : Ingress Test Fails to Route Traffic to a Deployment in Browser
Issue date:

--- start body ---
**Description**:

While testing the ingress configuration for the coffee deployment, I found that the intended routing is not working when accessed via a web browser. The deployment is defined in the ingresstest.yaml file and is expected to route traffic to the coffee application.

**Steps to Reproduce:**

Deploy the coffee application using the ingresstest.yaml file.
Set up the ingress controller to route traffic to the coffee application.
Access the coffee application via a web browser using the appropriate URL.
Expected Result:
<img width="613" alt="expected_image" src="https://github.com/kubernetes/ingress-nginx/assets/19824357/b1cd6c87-16b5-42f7-982d-535c672b480d">
The coffee application should be accessible and functional when accessed via the specified URL in the web browser.

**Actual Result:**
![actual_image](https://github.com/kubernetes/ingress-nginx/assets/19824357/3bd5ee8e-bd2a-4ba3-ae52-a55329eb0001)

The coffee application is not accessible via the web browser. The browser is unable to reach the coffee application through the specified URL and downloads json file



```

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
    name: hello-world-ingress-eastus2
    annotations:
      kubernetes.io/ingress.class: nginx
      nginx.ingress.kubernetes.io/ssl-redirect: "true"
      nginx.ingress.kubernetes.io/rewrite-target: /
spec: 
    tls:
    - hosts:
      - subsingresstest.cloudapp.azure.com
      secretName: hello-world-tls
    rules:
      - host: subsingresstest.cloudapp.azure.com
        http:
          paths:
          - path: /ingresstest
            pathType: Prefix
            backend:
              service:
                name: coffee-svc
                port: 
                  number: 80
```



--- end body ---
