Forum Discussion
STREAM PROFILE ISSUE
Hi Kevin,
Reviewing this old doc, I am also facing the similar issue:
https://devcentral.f5.com/questions/basic-http-stream-profile
When browsing:
https://univardev2.jdadelivers.com/jda/webworksws/SecurityServices?wsdl, it is redirecting to schemalocation: http://univardev2.jdadelivers.com:80/jda/webworksws/SecurityServices?wsdl
Som tried creating a STREAM Profile setting the target as: @http://univardev2.jdadelivers.com:80@https://univardev2.jdadelivers.com@@
Will that work without additional Irule ?
If incase I create an Irule, whether the below will work:
when HTTP_REQUEST { tell server not to compress response HTTP::header remove Accept-Encoding
disable STREAM for request flow
STREAM::disable
} when HTTP_RESPONSE { catch and replace redirect headers if { [HTTP::header exists Location] } { HTTP::header replace Location [string map {"http://univardev2.jdadelivers.com:80" "https://univardev2.jdadelivers.com"} [HTTP::header Location]] }
only look at text data
if { [HTTP::header Content-Type] contains "text" } {
create a STREAM expression to replace any http:// with https://
STREAM::expression {@http://univardev2.jdadelivers.com:80@https://univardev2.jdadelivers.com@}
enable STREAM
STREAM::enable
}
}
Thanks and Regards PZ
1 Reply
- The_Bhattman
Nimbostratus
Hi Parveez, You might need stremaing profiles
Have you looked at enabling rewrite on redirects within the HTTP Profile
https://devcentral.f5.com/articles/rewriting-redirects
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
