escman
Sep 29, 2022Cirrus
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 www.w3.org domain:
I got this iRule:
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression {@http:(?!//www\.w3\.org)@https://@}
STREAM::enable
}
}
however.. through this regular expression the virtual server is resetting the connections.. have any ideas how to do it in other way?
Thanks 🙂
Hi Enes,
I done it explict instead use only "http" > "https" (the real domain http://domain.com to https://domain.com) and works fine!
Thank you 🙂