Forum Discussion
smedakkar_85975
Sep 30, 2013Nimbostratus
Thank you Kevin. I took your code and modified it slightly. I've come up with a solution that works quite well. Here's my iRule. I'd be interested in getting your opinion.
Thank you again.
when CLIENT_ACCEPTED {
HTTP::enable
}
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/the-websocket-uri") } {
HTTP::disable
} elseif { [class match [HTTP::uri] starts_with UnrestrictedUris] } {
Do nothing by design - leaving the HTTP profile enabled
} else {
Drop the request
drop
}
}