Forum Discussion
Cindy_127211
Nimbostratus
May 17, 2006Passing 'default pool' to rule
I have a default pool defined in a virtual server. The virtual server also has a rule that uses the default pool name. Right now, this pool name is hard coded. Is there any way to make a rule that...
Al_Carandang_11
Nimbostratus
May 17, 2006You can create a DataGroup (class) which looks like:
class Pools {
"vs_www_sbox_americancentury_com_PROXY acs80sbox"
"virtual_server2 pool2"
...
}Your iRule will then look likerule SSLV2_Encrypt_ACS_sbox {
when HTTP_REQUEST {
set mypool [findclass [virtual name] $::Pools " "]
HTTP::header insert "Custom" "amc:443"
if { ![matchclass [SSL::cipher version] equals $::CipherVersion] and [SSL::cipher bits] > 127 } {
use pool $mypool
} elseif { [HTTP::uri] starts_with "/encryptcode/" } {
pool $mypool
} else {
HTTP::redirect https://[HTTP::host]/encryptcode/encryption_notice.jsp}
}
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects