Tomasz_93254
Feb 18, 2011Nimbostratus
Irule strange problem
I have the following Irule on my LTM F5:
when HTTP_REQUEST {
set subpath [HTTP::uri]
if {[HTTP::host] equals "aaa.co.uk"} { HTTP::respond 301 Location "http://www.aaa.co.uk$subpath" }
elseif {[HTTP::host] contains "www.aaa.co.uk"} {use pool pl_it_www-aaa-co-uk_p80 }
elseif {[HTTP::host] contains "www.aaa.com"} {use pool pl_it_www-aaa-com_p80 }
elseif {[HTTP::host] equals "bbb.com"} { HTTP::respond 301 Location "http://www.bbb.com$subpath" }
elseif {[HTTP::host] equals "www.bbb.com" and [HTTP::uri] contains "/qqq"} { HTTP::respond 301 Location "http://www.bbb.com" }
elseif {[HTTP::host] equals "www.bbb.com" and [HTTP::uri] contains "/default.html"} { HTTP::respond 301 Location "http://www.bbb.com" }
elseif {[HTTP::host] contains "www.bbb.com"} {use pool pl_it_www-bbb-com_p80 }
}
The rule works fine but only if there is a default pool associated in virtual server configuration. If I change this Default Pool to None from the drop down, the Irule stops working. Any obvious reasons why it happens?
BRs