Forum Discussion
Kirk_Bauer_1018
Nimbostratus
May 28, 2007Detecting HTTP vs. HTTPS
I have an iRule that will definitely be associated with a VS with an HTTP profile but may or may not have a client SSL profile. The rule needs to do a redirect but needs to know whether the client is talking to the BIG-IP via HTTP or HTTPS to know what to use in the redirect URL.
To me the best way to do this would be to detect whether or not a client SSL profile is associated with the VS -- is there a way to do this? I can't use any of the SSL::* commands, not even in a catch statement, as it can't be applied to a non-HTTPS virtual server in that case.
Thanks in advance for any help!
- Kevin_Stewart
Employee
The best way I can think of is to make two VIPs to the same ip address. One listening on port 80, the other on 443. - Kirk_Bauer_1018
Nimbostratus
Thanks, that worked like a charm!
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