Forum Discussion
pvaughan
Nimbostratus
Nov 20, 2013Need help with Irule to redirect based on http path or host header
I need to create an irule that will redirect traffic to a different pool bassed on the following criteria. The http path begins with /socket.io OR ((The http header 'Upgrade' contains the string 'We...
pvaughan
Nimbostratus
Nov 21, 2013New irule still doesn't work, same as before. Going to try support. Thanks
Assign a pool HTTP path matches
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/socket.io*" } {
pool pl_vantage-beta_1337
Or if header string matches
} elseif { { [HTTP::header "Upgrade"] contains "WebSocket" } && { [string tolower [HTTP::host]] starts_with "ws" }} {
pool pl_vantage-beta_1337 }
Otherwise use default pool
pool pl_vantage-beta_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