Forum Discussion
ouch_32572
Nimbostratus
Mar 19, 2009irule to rewrite steam in request
Hi All,
I have an issue that i have manged to resolve on another Lb (zxtm)
I need help translating my rule into an irule for f5.
how do i rewite the stream on an incomming requ...
ouch_32572
Nimbostratus
Mar 24, 2009Hi All,
I have now uploaded the rule but it doesnt work, i think the issue is in the way i am aproaching it somehow.
Whats happening now is that when i post a file to the site it just hangs...and then eventually times out.
This is what i am trying to acheive.
request:
https client post request>>Lb rewrites https to http>>http app server
response:
http app server>>Lb rewrites http to https >> https client>
The reponse part of my rule works.
here is my full rule...
when HTTP_REQUEST {
if { [HTTP::method] equals "POST" && [HTTP::header exists "Content-Length"] and [HTTP::header "Content-Length"] > 0} {
STREAM::expression "@https://10.104.30.55@http://10.104.30.55@"
STREAM::enable
} else {
STREAM::disable
}
}
when HTTP_RESPONSE {
Disable the stream filter by default
STREAM::disable
HTTP::header remove "Pragma"
HTTP::header replace Server "NotReplaced"
if { [HTTP::header Content-Type] contains "text/html;charset=UTF-8" or [HTTP::header Content-Type] contains "application/x-javascript" } {
HTTP::header replace Server "Replaced"
STREAM::expression "@http://10.104.30.55@https://10.104.30.55@"
Enable the stream filter for this response only
STREAM::enable
}
}
regards
Garry
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
