Forum Discussion
VFB
Cirrus
Mar 14, 2014redirecting L7 traffic
I'm trying to figure out how to redirect a set of L7 traffic host headers. Here's what I'd like to do:
redirect http://test.me.com to https://test.me.com, but all other traffic (example, johnny....
Moe_Jartin
Cirrus
Mar 14, 2014These should probably be different VIPs anyway. An HTTP VIP pointing to the HTTP pool. This HTTP VIP will have this iRule tied to it to redirect as needed.
Then a HTTPS VIP pointing to the HTTPS pool.
Joe
- VFBMar 18, 2014
Cirrus
I tested the following on my VMWARE simulator and it worked. Just wanted to see if it would work in a real life environment - when HTTP_REQUEST { switch -glob { [string tolower [HTTP::host]] } { "test.me.com" - "yahoo.com" - [HTTP::redirect https://$host/] } }
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