Forum Discussion
Kyle_S
Nimbostratus
Jul 13, 2017Where can you assign SSL::profiles within an iRule?
We are now migrating app3 and app4 to be hosted by a cloud provider across a dedicated circuit which requires the Server Name Indicator to be set. I am able to set the server name in the serverssl Pr...
Jad_Tabbara__J1
Cirrostratus
Jul 13, 2017Hello
try this code ,
when CLIENT_ACCEPTED {
SSL::disable serverside
}
when ACCESS_ACL_ALLOWED {
set poolnumber "0"
switch -glob [string tolower [HTTP::uri]] {
"/app1a/*" -
"/app1b/*" {
pool Pool_app1
set poolnumber "1"
}
"/app2a/*" -
"/app2b/*" {
pool Pool_app2
set poolnumber "2"
}
"/app3a/*" -
"/app3b/*" {
pool Pool_app3
set poolnumber "3"
}
"/app4a/*" -
"/app4b/*" {
pool Pool_app4
set poolnumber "4"
}
default {
pool Pool_default
}
}
}
when SERVER_CONNECTED {
if { $poolnumber == "1" } {
SSL::profile serverssl_profile1
SSL::enable
} elseif { $poolnumber == "2" } {
SSL::profile serverssl_profile2
SSL::enable
} elseif { $poolnumber == "3" } {
SSL::profile serverssl_profile3
SSL::enable
} elseif { $poolnumber == "4" } {
SSL::profile serverssl_profile4
SSL::enable
} else {
SSL::profile serverssl_profile_default
SSL::enable
}
}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
