Forum Discussion
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 ...
Misty_Spillers
Sep 30, 2011Nimbostratus
@@ ok this seems to work.
Could you please review and make sure I'm not getting into anything that might bite me. Remember I have to use quotes on my version 9.4.4 or I run into this problem http://support.f5.com/kb/en-us/solutions/public/7000/900/sol7988.html?sr=16791182 (I'm not sure if I'm doing it right but it seems to work but this is the line I changed "&http://*?venderapp\.co\.county\.state\.us&&")
when HTTP_REQUEST {
STREAM::disable
}
when HTTP_RESPONSE {
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression "&http://*?venderapp\.co\.county\.state\.us&&"
STREAM::enable
}
}
when STREAM_MATCHED {
if {[STREAM::match] starts_with "venderapp"}{
STREAM::replace "[string map {http:// https://} [STREAM::match]]"
log local0. "[IP::client_addr]:[TCP::local_port]: matched: [STREAM::match], replaced with: [string map {http:// https://} [STREAM::match]]"
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects