Forum Discussion
habib_Khan
Nimbostratus
Mar 02, 2016irule not functioning
I am using below irule for switching connection between pools depending on request. Its not working as needed.
Need help.
when HTTP_REQUEST {
set low_hostname [string tolower [HTTP::host]]
set ...
habib_Khan
Nimbostratus
Mar 05, 2016Kai,
- I changed and tried , no luck. Kindly make help me make this irule. I tried the below one as well, but no luck. when HTTP_REQUEST { switch [string tolower [HTTP::host]] { "topssit-http" { if { [string tolower [HTTP::uri]] contains "/socket.io" } { pool topssit-socket-pool } else { pool topssit-http } } "topsstg-pool" { if { [string tolower [HTTP::uri]] contains "/socket.io" } { pool topsstg-socket-pool } else { pool topsstg-pool } } "topstrg-pool" { if { [string tolower [HTTP::uri]] contains "/socket.io" } { pool topstrg-socket-pool } else { pool topstrg-pool } } "topsuat-http" { if { [string tolower [HTTP::uri]] contains "/socket.io" } { pool topsuat-socket-pool } else { pool topsuat-http } } } }
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