Today we’ll be looking at how to install the GeoIP module on Ubuntu 16.04 LTS, 18.04 LTS and 19.04 for NGINX.
You may come across an error like the following while trying to compile/install Nginx from source:
./configure: error: the GeoIP module requires the GeoIP library
To install the GeoIP module issue the following at terminal:
sudo apt-get install libgeoip-dev
That’s it, you’re done!