If the GeoIP2 is not working, you can try to install the IP2Locatoin Nginx using the tutorial below. https://www.ip2location.com/tutorials/how-to-use-ip2location-geolocation-with-nginx Posted at Nginx Forum: https://forum.nginx.org/read.php?2,281341,281352#msg-281352