Misty_Spillers
Sep 29, 2011Nimbostratus
Https on a http site with stylesheets
Sorry I have searched and there seems like many similar questions but I can't find the one that fixes my issue. I'm far from an expert so sorry if this is newbie but I'm out of time to fix the issue 😞
The basics
I have a vender application that was originally setup in our DMZ on port 80. Through regulations we needed to bring it up to ssl on the front end. Easy enough. (i don't know if you really want me to describe this part but many of our sites run 80 on the back end and are just fine)
Well the site uses stylesheets that I guess generates http links (so people get the message "do you wish to display non secure content etc") and since http not not allowed it doesn't work
This is where I was not sure how to fix so if there is a better solution please let me know.
Anyway I found http://devcentral.f5.com/wiki/iRules.STREAM__disable.ashx which seemed to be what I wanted to do.
I cut and pasted (most of it, I had to add quotes or else this iRule broke the LB on version 9.4.4)
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression "@http://@https://@"
STREAM::enable
}
}
I put in the default stream profile as it prompted me.
and poof it worked. Only worked too well that external links on the site are now https as well. I really only need requests directed at the site itself forced to https and I guess I don't really understand the wiki about how to do only some of the links.
Can you direct me in the correct direction?
Thanks so much