Forum Discussion
hooleylist
Apr 14, 2011Cirrostratus
A closing brace was just on the wrong line. You could also dynamically get the VS default pool name rather than hard coding it in the iRule:
when CLIENT_ACCEPTED {
Save the name of the VS default pool before it's modified in this iRule
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
www.foo.com { pool port_81_servers }
www.bar.com { pool port_82_servers }
default { pool $default_pool }
}
}
Aaron