kabuto178
kabuto178

Reputation: 3167

Running geoip module with nginx

I have the regular nginx library installed on ubuntu and I would like to add geoip feature to this project. I read that I need to load the geoip module and i installed it, I think, via apt-get but I am stuck at this level as I am not sure how to load nginx with this new module running alongside it. I already installed the cities and country database to the server.

Upvotes: 2

Views: 2627

Answers (1)

dendog
dendog

Reputation: 3328

When you run: nginx -V

Do you see --with-http_geoip_module, if not you should update your nginx.

If visible follow the following article to install and download the IP to Geo DB from Maxmind.

https://www.howtoforge.com/nginx-how-to-block-visitors-by-country-with-the-geoip-module-debian-ubuntu

Upvotes: 1

Related Questions