February 2018
Beginner to intermediate
348 pages
9h 40m
English
Although the name suggests some similarities with the previous one, this optional module provides accurate geographical information about your visitors by making use of the MaxMind (https://www.maxmind.com/en/home) GeoIP binary databases. You need to download the database files from the MaxMind website and place them in your Nginx directory.
Then, all you have to do is specify the database path with either directive:
geoip_country country.dat; # country information db geoip_city city.dat; # city information db geoip_org geoiporg.dat; # ISP/organization db
The first directive enables several variables: $geoip_country_code (two-letter country code), $geoip_country_code3 (three-letter ...
Read now
Unlock full access