Forum Discussion
Michael_Yates
Oct 24, 2011Nimbostratus
You do not need to list a default action unless you have one. The normal default action (unless you specify one) will allow all traffic that does not qualify for an iRule action to be passed through to the default pool applied to the Virtual Server.
Looking at your iRule, you do not need a default action.
You could also combine these separate iRules into a single iRule if you wanted to:
when HTTP_REQUEST {
if { [class match [IP::client_addr] eq grp-1] } {
ACCESS::disable
switch -glob [string tolower [HTTP::host]] {
"websiteurlhere.com" { pool grp-server2 }
}
}
}
when ACCESS_ACL_ALLOWED {
switch -glob [string tolower [HTTP::host]] {
"host_url_here" { pool grp-webserver1 }
}
}