ok worked it out... if anyones interested, haproxy needed the options forwardfor (to include X-Forwarder-For in header) and httpclose, then nginx needs to be configured/installed with --with-http_realip_module and in nginx.conf: http { ... set_real_ip_from haproxy.ip.address; real_ip_header X-Forwarded-For; ... } location ... { ... fastcgi_param COUNTRY $geoip_country_name;by halop123 - How to...
Hello! I have nginx behind HAProxy, and the geoip module seems to generate empty strings. I guess the reason is that geoIP tries to resolve HAProxy's internal IP address. Is there any way to force the geoIP module to resolve the X-Forwarded-For address? Any help would be appriciated, halopby halop123 - How to...
![]() |
![]() |
![]() |
![]() |
|