Forum Discussion
mike_schweinber
Nimbostratus
Jul 22, 2006Can I use an IRULE?
Hello,
Trying to load balance 3 web servers running Kronos Application. Need to use 443 for some security but application uses 80. Can I use an IRULE to manipulate this? With the setup now, ...
Ajit
Altostratus
Feb 02, 2017Hello Rahul,
Please try the below iRule and you should be good to test
when HTTP_REQUEST {
HTTP::header remove "Accept-Encoding"
STREAM::disable
set host [HTTP::host]
}
when HTTP_RESPONSE {
STREAM::disable
if { [HTTP::header exists Location] } {
HTTP::header replace Location [string map {"http://" "https://"} [HTTP::header Location]]
}
if { [HTTP::header Content-Type] contains "text" } {
set before "http://${host}:80/"
set after "https://${host}/"
STREAM::expression "@${before}@${after}@"
STREAM::enable
}
}
Please apply the above iRule to the https VIP and also make sure that you select the default stream profile for this HTTPS VIP.
Also, assign a custom https profile to the same VIP with the following features enabled:
Response Chunking: Re-chunk Redirect Rewrite: All
Let me know how it goes.
Thanks,
AjitHelp 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