starsz commented on issue #2777:
URL: https://github.com/apache/apisix/issues/2777#issuecomment-729381611


   Hi, I think there is a temporary solution.
   
   If your apisix version is earlier than or equal to 2.0, you can change your 
`/bin/apisix`, comment the line like this
   ```
   #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;
   #proxy_set_header   X-Real-IP         $remote_addr;
   ```
   and reload the apisix.
   
   If your apisix is on the master branch, you should do the same things as 
above on `apisix/cli/ngx_tpl.lua`
   
   
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to