Forum Discussion
Dave_Lee_20197
Nimbostratus
Jun 23, 2005close but no cigar
I need ssl on uri /test, test1 and test2 but not on the home page or uri /citrix. I made Class uri1 string - /test, /test1, and /test2. this is the rule I want to use.
if (http_uri starts_with...
Colin_Walker_12
Jun 23, 2005Historic F5 Account
Dave,
It looks as though the rule is working the way you've set it up. If you look at the rule, the behavior you're seeing is completely proper.
On the first request, it checks the http_uri and finds that the URI matches one of the URIs in the class you created. This redirects the user to "https://home.com", as defined by your rule.
Perhaps you'd see the desired behavior if the rule read something like:
if (http_uri starts_with one of uri1) {
redirect to "https://home.com/%u else {
use pool home_pool
}
This would perform the same redirect to https, but it would allow the URI of the request to carry over.
For instance, instead of ending up at https://home.com after the rule catches the URI that matches your class, you'd end up at https://home.com/test (or /test1, /test2, etc...). This way you wouldn't have to click the link again.
Hopefully this clears things up...
-Colin
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