hkatzler_36651
Jul 23, 2009Nimbostratus
http redirect with using different pools
Hello,
i need an iRule to redirect http requests. I have to use different pools for diffrent redirects.
Sample:
http://keyaccount.company.com should redirect to http://keyaccount.othercompany.net/path/path/index.html and use pool 1 for the redirect.
http://marketing.company.com should redirect to http://marketing.anothercompany.org/path/path/index.html and use pool 2 for the redirect.
when HTTP_REQUEST {
if { [HTTP::host] contains "keyaccount.company.com" } {
HTTP::redirect "http://keyaccount.othercompany.net/path/path/index.html"
This redirect should use pool 1. But how can i do this?
} elseif { [HTTP::host] contains "marketing.company.com" } {
HTTP::redirect "http://marketing.anothercompany.org/path/path/index.html"
This redirect should use pool 2. And so on.....
}
}
I hope, someone can help me. Thank you for response!
Heiko