Using the GeoIP module with Nginx and UWSGI
Now you can set nginx to pass GeoIP data into your CGI app via custom HTTP headers, e.g.:
proxy_set_header X-GeoIP-Country $geoip_country_name;proxy_set_header X-GeoIP-City $geoip_city;
CGI application will receive these custom headers along with standard HTTP headers provided by client-side.