Forum Discussion
Enable and Apply Server SSL Profile through iRule
Hi All,
We have configured an HTTPS VIP on F5 LTM. This VIP serves access for multiple URIs/connections. Now we have received a request to transfer the connection to HTTPS pool. Here application team has configured servers with SSL certificate and HTTPS service. But the site is not accessible.
VIP details are listed below. Kindly advise how I can enable Server SSL profile.
virtual vs.LB_VIP_https { snat automap pool default_pool destination LB_VIP:https ip protocol tcp rules rule_switchconnection persist cookie profiles { http_xforward {} oneconnect {} tcp {} SSL_CERT { clientside } } }
rule rule_switchconnection { when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/AAA" { pool AAAServers_http } "/BBB" { pool BBBServers_http } "/CCC" { pool CCCServers_http } "/DDD" { pool DDDServers_https } } }
pool DDDServers_https { monitor all https members { 1.1.1.1:https {} 2.2.2.2:https {} } }
Thanks, Rajendra
1 Reply
- nitass
Employee
you have to assign serverssl profile to the virtual server and disable/enable it in irule.
e.g.
when HTTP_REQUEST { SSL::disable serverside switch -glob [HTTP::uri] { "/AAA" { pool AAAServers_http } "/BBB" { pool BBBServers_http } "/CCC" { pool CCCServers_http } "/DDD" { SSL::enable serverside pool DDDServers_https } } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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