Welcome! Log In Create A New Profile

Advanced

nginx 1.11.5 'duplicate' map_hash_bucket_size error when geoip_country block used?

Anonymous User
October 22, 2016 12:32PM
I have a working nginx/1.11.5 instance, with this in config

...
http(
...
134 map_hash_bucket_size 4096;

...
)
...

when I add geoip blocking

...
http (
+ geoip_country /var/lib/GeoIP/GeoIP.dat;
+ map $geoip_country_code $allowed_country {
+ default yes;
+ XX no; # some country
...
134 map_hash_bucket_size 4096;

...
)
...

config check now reports

nginx: [emerg] "map_hash_bucket_size" directive is duplicate in /etc/nginx/nginx.conf:134

simply commenting out

- map_hash_bucket_size 4096;
+ #map_hash_bucket_size 4096;

fixes the config error.

Why can't 'map_hash_bucket_size' be set in the presence of the geoip_country snippet?

Config error? Bug? other?

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

nginx 1.11.5 'duplicate' map_hash_bucket_size error when geoip_country block used?

Anonymous User October 22, 2016 12:32PM

Re: nginx 1.11.5 'duplicate' map_hash_bucket_size error when geoip_country block used?

itpp2012 October 22, 2016 12:42PM

Re: nginx 1.11.5 'duplicate' map_hash_bucket_size error when geoip_country block used?

Anonymous User October 22, 2016 01:30PM

Re: nginx 1.11.5 'duplicate' map_hash_bucket_size error when geoip_country block used?

Maxim Dounin October 24, 2016 08:22AM

Re: nginx 1.11.5 'duplicate' map_hash_bucket_size error when geoip_country block used?

Anonymous User October 24, 2016 12:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 238
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