luqo33
luqo33

Reputation: 8361

NGINX ngx_http_geoip_module, support for MaxMind .dat and .mmdb IP databases

I've been successfully using NGINX's ngx_http_geoip_module with MaxMind's IP databases with the .dat extension:

http { geoip_country GeoIP.dat; geoip_city GeoLiteCity.dat; geoip_proxy 192.168.100.0/24; geoip_proxy 2001:0db8::/32; geoip_proxy_recursive on;

However, .dat is a legacy format. MaxMind now distributes IP databases in .mmdb binary format.

Does NGINX ngx_http_geoip_module support .mmdb format the same way it does .dat?

Upvotes: 2

Views: 5047

Answers (1)

Greg Oschwald
Greg Oschwald

Reputation: 1735

ngx_http_geoip_module does not support GeoIP2, but the third-party module ngx_http_geoip2_module does.

Upvotes: 5

Related Questions