You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm a little lost here.
I switched from nginx plus with geoip2 to a self compiled nginx with geoip2.
The config stayed the same but now I'm receiving the following error:
[root@approuter-stg-01 ~]# nginx -t
nginx: [emerg] the duplicate "geoip_country_code" variable in /etc/nginx/nginx.conf:106
nginx: configuration file /etc/nginx/nginx.conf test failed
This is the code it is referring to in the error:
geoip2 /usr/share/GeoIP/GeoLite2-Country.mmdb {
auto_reload 1h;
$geoip_country_code country iso_code;
$geoip_country_name country names en;
}
If i remove the country_code line it will produce the same error for the country_name line.
The file exists and geoip2 was installed properly.
packages:
[root@approuter-stg-01 ~]# yum list installed | grep -e max -e geo
geoipupdate.x86_64 4.5.0-1 @/geoipupdate_4.5.0_linux_amd64HF4dad
libmaxminddb.x86_64 1.2.0-6.el7 @centos_7-base-x86_64
Hi, I'm a little lost here.
I switched from nginx plus with geoip2 to a self compiled nginx with geoip2.
The config stayed the same but now I'm receiving the following error:
This is the code it is referring to in the error:
If i remove the country_code line it will produce the same error for the country_name line.
The file exists and geoip2 was installed properly.
packages:
nginx:
I can reproduce the error on a fresh centos 7 system with the same package and the default config (+ the geoip config)
To compile my rpm I used Version 3.3. of your module and libmaxminddb-1.4.3.
It would be fantastic if you could give me any pointers here, since I have no idea how to debug this further.
The text was updated successfully, but these errors were encountered: