Forum Discussion
Ed_Vitale_28327
Nimbostratus
Nov 18, 2005uri scheme
What is the best way to extract the uri scheme (http(s))?
im using ssl on nonstandard ports and need to pass the protocol back to the app in with a header insert.
https://app-a.foo...
unRuleY_95363
Nov 18, 2005Historic F5 Account
Assuming you are terminating the SSL on the BIGIP (which you must be since you are inserting an HTTP header), you can also do something like:
when HTTP_REQUEST {
if {[catch {PROFILE::clientssl mode}] == 0} {
set scheme HTTPS
} else {
set scheme HTTP
}
HTTP::header insert BIGIP-PROTOCOL $scheme
}This sets the scheme variable based on whether or not a clientssl profile is configured on the current virtual.
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