JoniJnm opened a new issue, #10136:
URL: https://github.com/apache/apisix/issues/10136

   ### Description
   
   Hi,
   
   I'm using apisix and I have a problem with the header 
`HTTP_X_FORWARDED_PORT`.
   
   * The original request is: 'GET https://my.host` (port 443)
   * There is a `ApisixTls`
   * There is a `ApisixRoute` pointing to a specific server at port 80 
(internally 8080)
   * Apisix internally uses the port 9443:
   
   
https://github.com/apache/apisix-helm-chart/blob/5d6dfbe512583816a8380619174e1df844f6965e/charts/apisix/values.yaml#L278
   
   The request header sent to my internal service is:
   * HTTP_X_FORWARDED_PROTO: https (ok)
   * HTTP_X_FORWARDED_HOST: my.host (ok)
   * HTTP_X_FORWARDED_PORT: 9443 (this should be the original 443, not the 
internally 9443 apisix port)
   
   Using ingress instead of apisix is ok on my app. Do I need to add some 
configuration or plugin to propagate the right port?
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.4.1  ([apisix helm chart 
1.5.1](https://artifacthub.io/packages/helm/apisix/apisix/1.5.1))
   - Operating system (run `uname -a`): ubuntu 22.04
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): nginx 
version: openresty/1.21.4.1


-- 
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