Jangle-Man_1290
Sep 19, 2014Nimbostratus
iRule - Direct traffic to specific pools based on host and URI
Good Afternoon,
I am struggling to find a winning combination for the following process.
The default Virtual Server pool is different and required for all other sites.
Step 1 - The website www.communigator.co.uk to use Pool_Website
Step 2 - Any website with the /LZ/ in the URi to us Pool_Landing_64
Step 3 - The web site www.communigator.co.uk with URI /login to use Pool_Admnin_64
I can get the site to hit the pool in step 1 but I get mixed response from when I try and add step 2 and 3.
Here is the syntax so far.
when HTTP_REQUEST { if {[HTTP::uri] starts_with "/login"} { pool Pool_Admin_64 }
if {[HTTP::uri] starts_with "/lz/*"} {
pool Pool_Landing_64 }
if { [HTTP::host] eq "www.communigator.co.uk"} {
pool Pool_Website }
}
Regards, Stuart