Changes between Initial Version and Version 1 of Ticket #2127


Ignore:
Timestamp:
01/25/21 08:29:53 (3 years ago)
Author:
anveshagarwal@…
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2127 – Description

    initial v1  
    2020X-Real-IP = a.a.a.a
    2121-> X-Forwarded-For should be a.a.a.a, b.b.b.b
    22 What I need is the ability to set first proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for and then search for real IP and replace $remote_addr value.
    2322
     23So here I am loosing info about my load balancer.
     24
     25Right now for getting proper ips in my webapp I need to use a workaround of setting X-forwarded-for as:
     26proxy_set_header  X-Forwarded-For "$http_x_forwarded_for, $realip_remote_addr";
     27
     28What I need is the ability to set first proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for and then search for real IP and replace $remote_addr value. Or maybe another variable similar to $proxy_add_x_forwarded_for which retains the load balancer ip.