Oh Ok -

Thanks for the pointer and if my understanding is clear then define
map $geoip_country_code $allowed_country_A
map $geoip_country_code $allowed_country_B
map $geoip_country_code $allowed_country_C

under http section in /etc/nginx/nginx.conf

and then use 
if ($allowed_country_A = no) in server section?

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,291069,291072#msg-291072

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

Reply via email to