lizeming commented on issue #2468: URL: https://github.com/apache/apisix/issues/2468#issuecomment-713353153
> can you provide a real example of your case? we need to confirm it ^_^ This is the proxy-rewrite plugin that we configured in APISIX. The Internet IP address and port of the redirect request are written into the http header "Host" field, and the service is called back to the client according to the http header "Host" field. Before using nginx, it can be done by proxy_set_header host $http_host, but in APISIX, proxy-rewrite needs to be fixed, which is not very convenient, and this rewriting is also invalid. http header "Host" field is always without a port. I have seen that the nginx configuration of APISIX is useful to cover the "Host" field by $host, but I don't know whether $host no longer has the original port. APISIX proxy-rewrite configuration ![Snipaste_2020-10-21_14-03-06](https://user-images.githubusercontent.com/897138/96683895-56b67480-13ad-11eb-862e-13edefccaed8.jpg) ![Snipaste_2020-10-21_14-03-36](https://user-images.githubusercontent.com/897138/96683909-5ae29200-13ad-11eb-8c83-7252249ddf13.jpg) ![Snipaste_2020-10-21_14-06-06](https://user-images.githubusercontent.com/897138/96683915-5f0eaf80-13ad-11eb-9654-1d554b676f32.jpg) Header information requested by the client ![Snipaste_2020-10-21_14-01-42](https://user-images.githubusercontent.com/897138/96683990-777eca00-13ad-11eb-979f-481357b4c635.jpg) The 'Host' field information sent to the backend via APISIX ![Snipaste_2020-10-21_13-56-59](https://user-images.githubusercontent.com/897138/96683960-6fbf2580-13ad-11eb-8368-b599149d7b8f.jpg) ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org