I am trying to redirect visitors based on two conditions, one based on the continent, and then based on their country, here are the current maps that I came up with eventually:
## GeoIP Redirection
map $geoip_city_continent_code $closest_server {
default row.example.com;
EU www.example.com;
NA us.example.com;
}
map $geoip_city_country_code $closest_server {
CH ch.example.com;
}
But this did not work, for this I am trying to understand what is the best approach to achieve this. Any help appreciated.