Welcome! Log In Create A New Profile

Advanced

geoip x forwarded for

Posted by philipp 
geoip x forwarded for
December 27, 2011 08:23AM
I would like to use the geo ip module behind Amazon Elastic Load Balancing. In this case the client ip address is stored in the x forwarded for header. Is it possible to use the header for geo ip lookup?
Re: geoip x forwarded for
December 29, 2011 08:12AM
ok this seems to be the solution:

real_ip_header X-Forwarded-For;
set_real_ip_from 10.0.0.0/8;
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 5 on May 17, 2013
Record Number of Guests: 138 on May 16, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready