Welcome! Log In Create A New Profile

Advanced

Geo Module. How to make nginx to check proxy for any ip?

March 15, 2013 04:24AM
I mean I haven't got full list of ip addresses that can be proxy, so I want nginx to look X-FORWARDED-FOR header for any ip address, and if the header exists to determine geo using the header. If there's no X-Forwarded-For header, then use ip address for geo.
is it acceptable to use "proxy 0.0.0.0/0" ?

for example:

geo $geo {
default ZZ;
proxy 0.0.0.0/0;

127.0.0.1/32 RU;
192.168.0.1/32 UK;
...
}
SubjectAuthorPosted

Geo Module. How to make nginx to check proxy for any ip?

varanMarch 15, 2013 04:24AM

Re: Geo Module. How to make nginx to check proxy for any ip?

Maxim DouninMarch 15, 2013 06:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 120
Record Number of Users: 3 on November 26, 2014
Record Number of Guests: 132 on November 26, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready