Forum Discussion
Piyush_72418
Nimbostratus
Feb 24, 2009check
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...
hoolio
Cirrostratus
Feb 25, 2009Hi Piyush,
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
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects