Forum Discussion
gweatherall_148
Nimbostratus
Jul 01, 2015HTTPS to HTTP iRule Redirection
We recently shut down the nodes on a VIP that is no longer in use, but I would like traffic to be redirected to our new VIP if customers hit the old page. An HTTP redirect iRule works perfectly fine ...
giltjr
Nimbostratus
Jul 01, 2015Were you offloading the SSL to the F5 on the old HTTPS VIP? Can you add some logging to the iRule
when CLIENT_ACCEPTED {
if {[TCP::local_port] eq 443 } {set SSL 1} else {set SSL 0}
}
when HTTP_REQUEST {
if {$SSL} {log local0. "Request is SSL and Host is [HTTP::host]}
if { [HTTP::host] eq "oldpage.website.com" } { HTTP::redirect "http://website.com/newpage" }
}
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
