Forum Discussion
ICM_38001
Nimbostratus
Jul 07, 2009Methods to determine whether an inbound connection is SSL or not
Hi Folks,
This is probably a bit of a newbie question.
I have two virtual servers lets call them vs_A_http and vs_B_https, assigned to myserver on one IP, both served by pool_webservers
I ...
JRahm
Admin
Jul 07, 2009you could consolidate into one iRule, applied to both, by evaluating the TCP::local_port contents:
when HTTP_REQUEST {
if { ([TCP::local_port] eq "443") and ([HTTP::uri] starts_with "/secure") } {
pool pool_securepaymentservers
} elseif { ([TCP::local_port] eq "80") and ([HTTP::uri] starts_with "/secure") } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
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