Re: GeoIP Question

2019-01-08 Thread kycedbi
You did not tell nginx where the geoip file is located. https://nginx.org/docs/http/ngx_http_geoip_module.html#geoip_country geoip_country /usr/share/GeoIP/GeoIP.dat; Posted at Nginx Forum: https://forum.nginx.org/read.php?2,282589,282593#msg-282593 _

Re: GeoIP Question

2019-01-08 Thread petrosetta
Ugh. I clicked too quickly. Sorry. When I test this setup, I get a forbidden in the US and a programmer in Jamaica gets the same thing. Can't figure out why. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,282589,282591#msg-282591 ___ nginx m

GeoIP Question

2019-01-08 Thread petrosetta
Hi All I would really appreciate some help here. I want to restrict all countries except the US and Jamaica (JM). load_module "/usr/local/libexec/nginx/ngx_http_geoip_module.so"; These are my entries in nginx.conf Under http map $geoip_country_code $country_access { "US" 0;