Forum Discussion
VDaya_180260
Nimbostratus
Aug 05, 2015http urls in content rewrite to https
Hi
I have an multiple web servers that I'm load balancing using an irule for pool selection based on url entered in the browser and offloading SSL to the F5. The first part (HTTP_REQUEST) looks fine...
Kevin_Stewart
Employee
Aug 05, 2015Here's a slight variation of your code:
when HTTP_REQUEST {
switch [HTTP::host] {
"myurl.domain.com" {
pool POOLSELECTION1
STREAM::disable
HTTP::header remove "Accept-Encoding"
}
default {
reject
}
}
}
when HTTP_RESPONSE {
if { [HTTP::header Content-Type] contains "text" } {
STREAM::expression {@http://@https://@}
STREAM::enable
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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