Forum Discussion
f5 mixed contents and block images
AhmadJ - it looks like you didn't get resolution on your issue? Are you still having problems? Has anything changed, that you can share, to help with troubleshooting?
LiefZimmermanThank you for your reply the issue already solved
Thank u again
- afr_jnSep 03, 2024
Altocumulus
Hi Ahmad,
You mentioned that issue already solved. May I know the Solutions?
I have a problem with Mixed Content to. Unfortunatelly the Stream Profiles + iRules does not work in my case. After apply Stream Profiles + iRules, there appear another issue (Net_err_time out)😅.
After apply Stream Profiles + iRules like in https://my.f5.com/manage/s/article/K31100432Thanks
- AhmadJSep 04, 2024
Altocumulus
try this irule
when HTTP_REQUEST {
STREAM::disable
}
when HTTP_RESPONSE {
if { [HTTP::header Content-Type] contains "text/html" } {
STREAM::expression {@http://@https://@}
STREAM::enable
}
elseif { ([HTTP::header Content-Type] contains "png") or ([HTTP::header Content-Type] contains "jpeg") or ([HTTP::header Content-Type] contains "application/x-font-woff") or ([HTTP::header Content-Type] contains "pdf") or ([HTTP::header Content-Type] contains "svg") or ([HTTP::header Content-Type] contains "image/svg+xml")} {
STREAM::disable
}
}Regards
- zamroni777Sep 05, 2024
MVP
as you see in the trace, the request address is https to ip address instread of hostname.
definitely the browser's ssl certificate verification will be invalid.those requests needs to be addressed to hostname according to the related ssl certificate.
irules can modify server's http response.
but clean solution is simply make webserver codes use relative paths.
and if the objects are hosted in other hostname, then use //hostname....../path... instead of "http://......" or "https://............"you should ask the web dev team to do it that way.
- afr_jnOct 22, 2024
Altocumulus
Recent Discussions
Related Content
* 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