apache mod_geoip 2 nginx

Maxim M Chechel mc at ifun.ru
Wed Feb 1 23:51:52 MSK 2006


> > Пытаюсь перезагрузить конфиг nginx, в ответ получаю ошибку:
> > 2006/02/01 23:27:17 [emerg] 761#0: unexpected "}" in /etc/nginx/nginx.conf:44
> > 2006/02/01 23:27:17 [emerg] 761#0: the configuration file /etc/nginx/nginx.conf test failed
> >
> > Как я понял парсер конфига хочет ";" перед "}" , но если меняю местами директивы в секции geo:
> > geo  $country  {
> > 	include          /usr/share/GeoIP/GeoIP.nginx
> > 	default          RU;
> > }
> >
> > Получаю другую ошибку:
> > 2006/02/01 23:29:42 [emerg] 1423#0: invalid number of the geo parameters in /etc/nginx/nginx.conf:43
> > 2006/02/01 23:29:42 [emerg] 1423#0: the configuration file /etc/nginx/nginx.conf test failed
> >
> > Куда копать дальше? :)
> 
>   	default          RU;
> -	include          /usr/share/GeoIP/GeoIP.nginx
> + 	include          /usr/share/GeoIP/GeoIP.nginx;

Помогло! :)

> 
> 
> Игорь Сысоев
> http://sysoev.ru
> 


-- 
С уважением,
Максим, администратор
http://iFun.ru
mailto: mc at ifun.ru
ICQ: 422279





More information about the nginx-ru mailing list