Forum Discussion
mike_89584
Nimbostratus
Oct 09, 2015conditional ssl rewrite
Hi All
we have F5 LTM on v11.6, and I am trying to write what I'm sure is a very simple iRule...
we have a domain and what I need to do is enforce SSL if someone goes to www.company.com/us...
Kevin_Stewart
Employee
Oct 09, 2015It's more or less something like this (some tweaking may be required):
HTTP VIP:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/user" } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
HTTPS VIP:
when HTTP_REQUEST {
if { not ( [string tolower [HTTP::uri]] starts_with "/user" } {
HTTP::redirect "http://[HTTP::host][HTTP::uri]"
}
}
Of course again, if you establish a session with the user, by virtue of them logging on and you sending a cookie/token, that token will likely be visible to the unencrypted HTTP data flow.
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