Malcom_Sargla_6
Oct 12, 2007Nimbostratus
Simple Http Redirect.. double 'IF' statement
Dear Central..
I am very new to Irules and really could use some assistance with one that I am working on.. again very new so I do apologize in advance if this is very basic.
1) Client request will come in via HTTPs with uri = xxx
2) AND if they belong to proper range within 'test' redirect to external webserver
3) everyone else with uri = xxx is to use default_pool..
when HTTP_REQUEST {
if [HTTP::uri] starts_with $::/xxx } {
if { [matchclass [IP::client_addr] equals $::test] } {
HTTP::redirect "http://xxx.why.not.net/[HTTP::uri]"
} elseif [HTTP::uri] starts_with $::/pfs } {
pool default_pool
}
}
Thank you in advance.
ms.