5

I am trying to use the GeoIP module with my Nginx and Uwsgi stack. All the tutorials relate to using it with fastcgi, but since I dont use fastcgi it doesnt help.

I need to get 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;

How do I do this with Uwsgi?

Jimmy
  • 12,087
  • 28
  • 102
  • 192

1 Answers1

7

uwsgi_param key value;

Ex.

uwsgi_param GEOIP_COUNTRY $geoip_country_name;

roberto
  • 12,723
  • 44
  • 30
  • Wow I got a reply from the creator himself! Thank you ill do some reading – Jimmy Nov 22 '12 at 17:21
  • For clarification, is it correct that I would put this in my nginx config under location as per this link: http://projects.unbit.it/uwsgi/wiki/uWSGIVars – Jimmy Nov 22 '12 at 17:27