Darrell_Kesti_5
Aug 27, 2008Historic F5 Account
Stream iRule
Hello. I am working on an iRule to solve a specific problem with a Sharepoint java script. Basically, I am doing SSL Client side termination on the Big-IP LTM 9.4.5 box. However, a few scripts located in the /_wpresources directory from the SharePoint servers are hard coding an http://intranet address when I need all of it to be an https://intranet address. Here is a way I think I can solve it by using a stream profile and replacing http:// with https://. The kicker is I only want to do this when I see a response from the /_wpresources directory.
Here is what I have....will this work?
when HTTP_RESPONSE {
Check if the URI contains the /_wpresources or equivalent. If it does replace http:// with https:// within the data stream.
if {[HTTP::header value uri] contains "_wpresources"}{
STREAM::expression "@http://@https://@"
STREAM::enable
}
Disable the stream filter by default. We are doing this as the steam profile is enabled within the http profile. It will be re-enabled if needed later.
STREAM::disable
}
Thanks.