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...
Thomas_Gobet
Nimbostratus
Nov 20, 2013Just be careful, the first condition for your elseif will be :
elseif { { [HTTP::header "Upgrade"] contains "WebSocket" } && { [string tolower [HTTP::host]] starts_with "ws" } } {
The mistake was just on "Upgrade" instead of "WebSocket"
- Richard__HarlanNov 20, 2013Historic F5 AccountGood catch typed to fast. Thanks
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