I am working on Debian Jessie 9. I have installed Nginx but there is no GeoIP module.

so I decided to install it but "apt-get install nginx-module-geoip" not working giving an error like E: Unable to locate package Nginx-module-GeoIP

how I can install GeoIP module in Nginx

  • Jessie is Debian 8, not 9. Did you mean Debian 8, or did you mean Debian Stretch (9)? – Michael Hampton Sep 18 '19 at 22:03

From the documentation it looks like the command for Debian/Ubuntu is this:

apt-get install nginx-plus-module-geoip2

Note that NGINX plus needs to be installed, not just regular NGINX

I've been using the MaxMind free geolite2 database module, but it hasn't been updated since 2015 and only runs on Python2. Is the NGINX module more recent?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.