Forum Discussion
HY_37629
Nimbostratus
Jul 23, 2009Pool Selection base on HTTPS Request
Hello,
Newbie here...
Have a virtual server setup setup with client and server SSL.
Is it possible to direct httpS://www.x.com/a to pool a_pool and http://www.x.co...
goyogi
Nimbostratus
Jul 28, 2009hyang...
I think something like this should work for you. And I may have answered my own question. =)
when HTTP_REQUEST {
set my_uri [string tolower [HTTP::uri]]
if { [URI::port [HTTP::uri]] == 443 } {
if { $my_uri starts_with "/a"} {
pool a_pool
}
}
elseif { [URI::port [HTTP::uri]] == 80 } {
if { $my_uri starts_with "/b"} {
pool b_pool
}
}
else {
pool x_pool
}
}
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
