GeoIp local countries

soisita nginx-forum at nginx.us
Tue Sep 7 19:10:24 MSD 2010


Testing in domain.fr vhost file
[code]
if ($geoip_country_code = FR) {
rewrite ^(.*)$ http://domain.de$1 permanent;
break;
}
[/code]
while being in France (to see if geoip rules), I fall in a loop,
redirecting to domain.de (so I assume this part is ok), then asking for
domain.fr again , etc.

Where am I wrong ?

Tks

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,127911,127997#msg-127997




More information about the nginx mailing list