Forum Discussion
Parveez_70209
Nimbostratus
Dec 12, 2013How to Switch Between Pools using Irule
Original Irule:
==============================
when HTTP_REQUEST {
set http_uri [string tolower [HTTP::uri]]
if {$http_uri equals "/" } {
...
Philippe_CLOUP
Employee
Dec 12, 2013I don't get why you send an HTTP::redirect to the client, but also send to the pool at the same time ? Usually, when you send to a pool member, you don't send and HTTP redirect at the same time. But i am probably missing something here. Anyhow, what you are looking for should be like this (replace /floorplan by what is required in term of URI for your application, same for your redirect):
when HTTP_REQUEST { set http_uri [string tolower [HTTP::uri]]
if {$http_uri equals "/" } {
HTTP::redirect "https://kepogstest.jdadelivers.com/ikb"
pool kepogstest.example.com-POOL
return
}
elseif {$http_uri equals "/Floorplan" } {
HTTP::redirect "https://kepogstest.jdadelivers.com/Floorplan"
pool kepogstest.example.com-Floorplan-POOL
return
} }
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