Hello,
If your trackfail.php (behind FastCGI) detects IP address based on
$_SERVER['REMOTE_ADDR'], you may would like to place additional headers
in your nginx configuration:
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Then pass X-Real-IP as param to FastCGI:
fastcgi_param REMOTE_ADDR $http_x_real_ip;
or direct to change you trackfail.php to detects IP address based on
$_SERVER['HTTP_X_REAL_IP'] (after adding additional X-Real-IP header).
On 2/19/2014 4:36 PM, sivakr wrote:
[REMOTE_ADDR] => 210.x5.2x2.93
[REMOTE_PORT] => 60187
[GEOIP_COUNTRY_CODE] => NZ
[GEOIP_COUNTRY_NAME] => New Zealand
[GEOIP_ADDR] => 115.1x8.3x.37
[GEOIP_COUNTRY_CODE] => NZ
[GEOIP_COUNTRY_NAME] => New Zealand
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,247736,247736#msg-247736
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx