MattB_MA_170307
Feb 10, 2016Nimbostratus
HTTP to HTTPS stream correction
I have an application in Apache Tomcat that is hosted on an internal server on port 8080. Sitting in front of that is my BIP 2000 with a vserver performing SSL offload, also listening port 8080. In front of that I have a firewall NATing with port translation from 18080 to my vserver. The application on the host keeps making requests to http, which I know is a common problem, so I went to do a simple redirect to https, then I realized, it's calling http on the same port that https is running. This isn't the same as a simple redirect from 80 to 443, so then I tried this:
Example which replaces http:// with https:// in response content
Prevents server compression in responses
when HTTP_REQUEST {
Disable the stream filter for all requests
STREAM::disable
LTM does not uncompress response content, so if the server has compression enabled
and it cannot be disabled on the server, we can prevent the server from
sending a compressed response by removing the compression offerings from the client
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Replace http:// with https://
STREAM::expression {@http://@https://@}
Enable the stream filter for this response only
STREAM::enable
}
}
Which I really thought would work, but it didn't. HTTP calls are still getting through to the browser. What am I missing?