srantos_87030
Jul 25, 2012Nimbostratus
iRule to bypass default pool
Hello, if
{[HTTP::host] contains "facebook"} { pool
isa_pool snat
automap}}
I am using a virtual server to load-balance HTTP traffic from customers to a pool of traffic servers. I need an iRule to bypass this pool and send the HTTP requests to an Internet proxy with IP address 172.19.44.13 when the HTTP request contains the string "facebook" in the Host header.
I am using this iRule:
when
HTTP_REQUEST {
I am testing and I notice that as soon as this iRule matches when I visit "www.facebook.com" for example, it will match any other HTTP request after the first correct match. For example, if I visit "www.google.com" after I visit "www.facebook.com" the iRule will match for google as well!
Can you think what is wrong? Thank you in advance.