Geoip rewrite

was wondering if someone could help me out with a rewrite rule.
i need to rewrite anyone who comes to the main site (ie. www.test.com)
with no request_filename and is from canada to be redirected to a
different page.

i got the geoip working just fine

if ($geoip_country_code = ‘CA’) {

}

but i can’t figure out how to do the combination of the geo and the
frontpage only.

any help would be appreciated

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

robv ha scritto:

any help would be appreciated

you mean something like:

location = / {
if ($geoip_country_code = ‘CA’) {

}
}

location / {

}

Daniele

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs