Hi 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