Forum Discussion
ppphatak_127926
Nimbostratus
Apr 21, 2005substr doesnt work as expected
This is simple rule I wrote. I have a virtual server on port 80 and a proxy for 443, both pointing to this rule.
I was expecting when url is https, it would go to yahoo and when its not...
Apr 22, 2005
I don't think so as the full URI is not part of the HTTP header or payload. But, after talking with some folks (thanks uRuleY), I realized that you could use the server_port to distinguish whether it's an ssl connection or not. You could do something like the following
if (server_port == 443) {
redirect to "www.yahoo.com"
} else {
redirect to "www.msn.com"
}
That is assuming that you are using standard https ports which it looks like from your URLs.
Keep in mind that this isn't guaranteed to work if the user does something like
http://vip:443
But that probably wouldn't work anyway if you have your vip expecting SSL traffic.
-Joe
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