Maxmind GeoIP City Module

Phillip Oldham phill at theactivitypeople.co.uk
Tue Jul 21 12:01:22 MSD 2009


Igor Sysoev wrote:
> The module is in the attached patch.
>
> ./configure ---with-http_geoip_module
>
> nginx.conf:
>
> http {
>
>     geoip_country  path/to/GeoIP.dat;
>     geoip_city     path/to/GeoLiteCity.dat;
>
>
> You may use only one base or both bases.
>
> Varaibles available with geoip_country base:
>
> $geoip_country_code
> $geoip_country_code3
> $geoip_country_name
>
> Varaibles available with geoip_city base:
>
> $geoip_city_country_code
> $geoip_city_country_code3
> $geoip_city_country_name
> $geoip_region
> $geoip_city
> $geoip_postal_code
>   
I've updated the wiki accordingly.





More information about the nginx mailing list