JoniJnm commented on issue #1948:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/1948#issuecomment-1702626562

   ```sh
   # add ingress
   cat <<EOF | kubectl apply -n testing -f -
   apiVersion: networking.k8s.io/v1
   kind: Ingress
   metadata:
     name: my-ingress
   spec:
     ingressClassName: nginx
     rules:
       - host: my.host
         http:
           paths:
             - path: /
               pathType: Prefix
               backend:
                 service:
                   name: apache-php
                   port:
                     number: 80
   EOF
   ```
   
   Modify now your etc/hosts to point my.host to the ingress ip
   
   ```sh
   curl -s my.host | grep FORWARDED_PORT
   # output: [HTTP_X_FORWARDED_PORT] => 80
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to