Forum Discussion
Satyanarayana_B
Nimbostratus
Feb 24, 2014client and server ssl
Hi i'm using clien ssl with wildcart certification and 20 url's pointed same ip, i'm using irules to divert the traffic based on uri,
now i want to use server ssl with same virtual server for on...
Thomas_Gobet
Nimbostratus
Feb 25, 2014If you want to apply server ssl for some of your URL, you need to use switch condition.
Your iRule will look like that :
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"host.ssl.wanted" {
switch [string tolower [HTTP::uri]] {
"/nossl" {
pool nossl
}
"/serverside" {
set doSSL 1
pool pool_ssl_wanted
}
}
}
"host.ssl.unwanted" {
pool pool_serverside_nonssl
}
}
}
when SERVER_CONNECTED {
if { $doSSL == 1 }{
SSL::enable serverside
SSL::profile your_SSL_Wilcard_Serverside
}
}
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