nginx geoip module with reverse proxy in multi tenant

blason nginx-forum at forum.nginx.org
Sat Mar 27 10:34:54 UTC 2021


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



More information about the nginx mailing list