Forum Discussion
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 loca...
hoolio
Cirrostratus
Aug 27, 2008Hello,
The URI isn't available by default in server side events, so you'll have to check for it in the HTTP_REQUEST event. Can you give this a try?
when HTTP_REQUEST {
Don't rewrite the response by default
set rewrite_response 0
Check if we want to rewrite the response based on the requested URI
if {[string tolower [HTTP::path]] contains "/_wpresources"}{
set rewrite_response 1
}
}
when HTTP_RESPONSE {
Disable the stream filter by default
STREAM::disable
Check if we're rewriting the response
if {$rewrite_response==1}{
Match any http:// instance and replace it with https://
STREAM::expression {@http://@https://@}
Enable the stream filter for this response only
STREAM::enable
}
}
I didn't add logging, but you can do so following the examples on the STREAM::expression wiki page (Click here).
Aaron
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
