Welcome! Log In Create A New Profile

Advanced

Re: GEOIP context problem

Maxim Dounin
August 31, 2010 11:46AM
Hello!

On Tue, Aug 31, 2010 at 10:58:23AM -0400, syle wrote:

> Maxim:
>
> I was doing strictly in http context as module was documented nothing
> else and it was not recogised at all ie:
>
> http {
> #GEOIP, can parse ENV headers now for where they are located :)
> geoip_city /usr/local/share/GeoIP/GeoLiteCity.dat;
>
> fastcgi_param GEOIP_CITY_COUNTRY_CODE $geoip_city_country_code;
> fastcgi_param GEOIP_CITY_COUNTRY_CODE3 $geoip_city_country_code3;
> fastcgi_param GEOIP_CITY_COUNTRY_NAME $geoip_city_country_name;
> fastcgi_param GEOIP_REGION $geoip_region;
> fastcgi_param GEOIP_CITY $geoip_city;
> fastcgi_param GEOIP_POSTAL_CODE $geoip_postal_code;
> fastcgi_param GEOIP_CITY_CONTINENT_CODE $geoip_city_continent_code;
> fastcgi_param GEOIP_LATITUDE $geoip_latitude;
> fastcgi_param GEOIP_LONGITUDE $geoip_longitude;
>
> #virtual hosting---all server {} directives
> include /usr/local/etc/nginx/vhosts/*;
> }

And you likely have "include fastcg_params;" in your locations
blocks. This is exactly what I was talked about. You have to
set all fastcgi_param's at the same level.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

GEOIP context problem

syle August 31, 2010 12:18AM

Re: GEOIP context problem

Sergey A. Osokin August 31, 2010 03:42AM

Re: GEOIP context problem

Maxim Dounin August 31, 2010 05:42AM

Re: GEOIP context problem

syle August 31, 2010 10:58AM

Re: GEOIP context problem

syle August 31, 2010 11:38AM

Re: GEOIP context problem

Maxim Dounin August 31, 2010 11:46AM

Re: GEOIP context problem

Maxim Dounin August 31, 2010 11:56AM

Re: GEOIP context problem

syle August 31, 2010 10:25PM

Re: GEOIP context problem

syle August 31, 2010 10:43PM

Re: GEOIP context problem

adamchal October 21, 2010 05:50PM

Re: GEOIP context problem

Sergey A. Osokin September 01, 2010 02:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 282
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready