Thank you for providing guidance on this topic, I really appreciate it! Have a great day!by YvorL - Nginx Mailing List - English
Hi Maxim, I really appreciate your response! I just realized that in the background I'm converting the current GeoIP2 database to legacy format (https://github.com/sherpya/geolite2legacy). As I mentioned before, when I logged $geoip_region, I got a full string instead of 2 symbols as it's defined in the official documentation. Is this because I'm not using the legacy database? One lastby YvorL - Nginx Mailing List - English
Thank you for your response! I see. It's weird that I can't use a column that's right there in the database and would uniquely identify any entry. When I checked the Nginx documentation, I saw this: "$geoip_region two-symbol country region code (region, territory, state, province, federal land and the like), for example, ā48ā, āDCā." That should be the "subdivision_by YvorL - Nginx Mailing List - English
I was setting up GeoIP rules (https://nginx.org/en/docs/http/ngx_http_geoip_module.html) and looked into the MaxMind database when I realized there are multiple cities that has the same name. This means I can't simply match $geoip_city in a rule. The only data that's unique and is available for all cities in the world is the "geoname ID" (https://www.geonames.org/). However, it seems I cby YvorL - Nginx Mailing List - English