First I need to make sure my Nginx has the geoip module. Check it by entering the command below. My Nginx shown the results as below. I found¬† –with-http_geoip_module=dynamic It is cool, I have the geoip module with my Nginx installation. Second,¬† I need GeoIP country database. Here is the official site to download the