Forum Discussion

escman's avatar
Icon for Cirrus rankCirrus
Sep 29, 2022

STREAM profile (HTTP > HTTPS) with host exception

Hello guys,

I do need to add a exception into the default stream irule (HTTP to HTTPS) to bypass the domain:

I got this iRule:

HTTP::header remove "Accept-Encoding"
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression {@http:(?!//www\.w3\.org)@https://@}

however.. through this regular expression the virtual server is resetting the connections.. have any ideas how to do it in other way?

Thanks 🙂


4 Replies

    • escman's avatar
      Icon for Cirrus rankCirrus

      Hi sir,

      I already tried to skip svg files but also there are alot of javascript codes running at page (note that the server is entire HTTP due ssloffload) and, the issue releated with the svg/png objects works fine but some javascript elements just do not occur probaly due stream profile. I dont know if its right to bypass the javascript because its showed as MIME text/html at content response and the first "if" will trigger... I don't know if it's correct, however, its possible to change all "HTTP" references in the application code to null (like change to, and leave like a hybrid request? and then let the browser interpret the correct protocol.