Forum Discussion
That will help. but here's the thing. On the virtual servers for each of those SIte's i also have a redirect to a specific login URI. Can you redirect to a pool and issue the appropriate redirect as part of the same iRUle ?
for eg when a user types in https://siteA.domain.com , pool SiteA needs to be selected and the user needs to be redirected to "https://siteA.domain.com/TC/welcome.msv" and when a user ttypes in https://siteB.domain.com, pool SiteB needs o be selected and user needs to be redirected to http://siteB.domain.com/Login/login.apsx
I started out along the path of redirecting to pools based on the URL , but did not know how to issue the redirects
Actually i do want to use a single virtual server to redirect to other pools and at the same time perform the redirect to the appropriate URL once the pool is selected. Currently the way these are setup is a single VS for each site.
The rule i was going to use for pool selection is as below. Is it possible to do the redirect within this rule.
when HTTP_REQUEST { if {[HTTP::uri] contains "siteA.domain.com" } { log local0. "SiteA Access" pool vs_SiteA_prod_pool_pool } elseif {[HTTP::uri] contains "SiteB.domain.com" } { log local0. "SiteB Access" pool vs_SiteB_prod_pool } elseif {[HTTP::uri] contains "SiteC.domain.com" } { log local0. "SiteC Access" pool vs_kronos_prod_pool } elseif {[HTTP::uri] contains "SiteD.domain.com" } { log local0. "SiteD Access" pool vs_SiteD_prod_pool } else { log local0. "SiteA" pool vs_SiteA_prod_pool } } }