NGINX geoip module

May 27, 2018 1.1k views
Nginx Ubuntu 16.04

I am using ubuntu 16 and tryign to get the geoip filter to work. I have loaded the nginx.conf file with the geoip_country and city database files withint the http block, but i am not sure what to do with the sites-available/default server block to access the country code from the geoip module as it seems to not be working.

Be the first one to answer this question.