tokers commented on issue #4942:
URL: https://github.com/apache/apisix/issues/4942#issuecomment-909003805


   > the response is not processed by the gateway (apisix).
   > 
   > See the nginx conf
   > 
   > ### the following x-forwarded-* headers is to send to upstream server
   > ```
   >         set $var_x_forwarded_for        $remote_addr;
   >         set $var_x_forwarded_proto      $scheme;
   >         set $var_x_forwarded_host       $host;
   >         set $var_x_forwarded_port       $server_port;
   > 
   >         if ($http_x_forwarded_for != "") {
   >             set $var_x_forwarded_for "${http_x_forwarded_for}, 
${realip_remote_addr}";
   >         }
   >         if ($http_x_forwarded_proto != "") {
   >             set $var_x_forwarded_proto $http_x_forwarded_proto;
   >         }
   >         if ($http_x_forwarded_host != "") {
   >             set $var_x_forwarded_host $http_x_forwarded_host;
   >         }
   >         if ($http_x_forwarded_port != "") {
   >             set $var_x_forwarded_port $http_x_forwarded_port;
   >         }
   > 
   >         proxy_set_header   X-Forwarded-For      $var_x_forwarded_for;
   >         proxy_set_header   X-Forwarded-Proto    $var_x_forwarded_proto;
   >         proxy_set_header   X-Forwarded-Host     $var_x_forwarded_host;
   >         proxy_set_header   X-Forwarded-Port     $var_x_forwarded_port;
   > ```
   > 
   > so you can add some header to the previous proxy. set the X-Forwarded-Port 
to 80 to resolve it
   
   Good job, let see whether it can help @eastearth to solve his problems. If 
so, I think we need to add a FAQ entry to record this.


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