Piyush_72418
Feb 24, 2009Nimbostratus
check
If I have a Geo IP based domain resolution @ DNS.
like based on Geo location abc.com will be resolved to either a.b.c.d (if US) and e.f.g.h (if from India)
Can I write a iRule on BigIP...
I think I gave an incorrect suggestion. Does something like this sound correct to you?
For VIP1, check if the requested path is /. If so, redirect the request to http://abc.com/home_india.html. Else, directly select VIP2 as the destination for the request.
when HTTP_REQUEST {
Check if requested path is /
if {[HTTP::path] eq "/"}{
Redirect client to initial page
HTTP::redirect "http://abc.com/home_india.html"
} else {
Send to VIP2 (where VIP2 is the name of the second VIP)
virtual VIP2
}
}
For VIP2, check if the requested path is /. If so, redirect the request to http://abc.com/home_us.html. Else, select VIP2's pool as the destination for the request.
when HTTP_REQUEST {
Check if requested path is /
if {[HTTP::path] eq "/"}{
Redirect client to initial page
HTTP::redirect "http://abc.com/home_us.html"
}
Default action is to use the default pool on the VIP
}
Aaron