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: 67
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready