Paul_Gaynor_706
Jan 16, 2009Nimbostratus
IRule causes Virtual Servers to be "up"?
Hi Everyone,
When I replace the first iRule below with the second iRule belown on a virtual server the VS is marked up when the server pool has no available members? Any idea what might be going on here?
First iRule
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if {$uri starts_with "/services"}
{}
else
{
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
Replacement iRule
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/services" } {
pool ws_server_pool
}
elseif { [string tolower [HTTP::uri]] equals "/public/diagnostic.do"}
{
pool gs_server_pool
}
else {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
Thanks!
Paul