We have web servers on nginx 1.9.9 and php-fpm 7.0.2 behind proxy on nginx 1.9.5
Proxy pass IP address with this settings:
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Fastcgi params on web server:
fastcgi_param MOBILEBRAND $ip2location_mobilebrand;
fastcgi_param USAGETYPE $ip2location_usagetype;
We've tried to edit an original module download from [url removed, login to view] and add variables for "mobilebrand" and "usagetype".
It works but for 15 - 20% of the traffic, it returns value "Invalid ipv4 address".
The same IP with php class and the same ip2location database returns good value.
Earlier we tried a community module downloaded from [url removed, login to view], but it didn't work properly as well, the only difference was, that it was returning some unknown characters instead of the invalid message.
So we need to update the nginx module to work with all traffic.
Please bid only if you are sure that you will be able to do what we need.