GeoIP and Nginx
- by JavierMartinez
I have a nginx with geoip, but it is not working rightly. The issue is the next:
Nginx are getting geodata from $_SERVER['REMOTE_ADDR'] instead of $_SERVER['HTTP_X_HAPROXY_IP'], which have the real client ip. So, the reported geodata belongs to my server ip instead of client ip.
Does anybody where could be the error to fix it?
Nginx version and…