<div>i am trying to move from nginx-&gt;fastcgi to nginx-&gt;apache-&gt;fastcgi</div><div><br></div>this how i have configured proxy_pass to my apache running on 2080.<div>my app gets the client ip address as 127.0.0.1. how to make it see the correct real ip address.</div>

<div><br></div><div><div><div><div><div>        location / {</div><div>            root   /home/live/work/apps;</div><div>            proxy_pass  <a href="http://127.0.0.1:2080/$host$request_uri">http://127.0.0.1:2080/$host$request_uri</a>;</div>

<div>            proxy_set_header X-Real-IP $remote_addr;</div><div>            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</div><div>            proxy_set_header Host $host;</div><div>            proxy_set_header IP_GEO $geo;</div>

<div>        }</div><div><br></div><div>i get the server address as this &#39;SERVER_ADDR&#39;: &#39;127.0.0.1&#39;, how to fix this?</div><div><br></div><div><br></div><div>the IP_GEO header gets converted to HTTP_IP_GEO, is there anyway to avoid this as my python app uses IP_GEO everywhere.</div>

<div><br></div><div>thanks a lot!</div></div></div></div></div>