Forum Discussion
Ferraral_223579
Nimbostratus
Oct 06, 2016HTTP to HTTPS Redirect (Simple I-Rule)
Brand new to I-Rules and I was hoping someone could help me with creating a simple I-Rule for redirecting traffic from an HTTP VIP to an HTTPS VIP. FYI - I am terminating the SSL Cert on the LB for HTTPS.
2 Replies
- Jinshu
Cirrus
Use the existing irule '
' That is for http to https redirect only and add this to http VIP._sys_https_redirectwhen HTTP_REQUEST { HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] }-Jinshu
- F5_Jeff
Cirrus
Hi!
There is a default iRule for HTTP to HTTPS redirection. Just add in on the HTTP VS.
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