Kenny_Van_73892
Dec 28, 2006Nimbostratus
The second "if"
Did I do anything wrong with my irules below that my second embeded "if" never got to process?
I have a website which consists of http and https, let say https://www.mysite.com/admin/logon.aspx. If an user goes to http://www.mysite.com, the Big IP needs to send traffic to pool1 which loads balance accross the nodes. If an user goes to logon.aspx, the Big IP needs to send traffic to pool2 and pool2 consist of a single node.
Here's my irules:
if (http_uri contains "/admin") {
redirect to "https://" + tolower(http_host) + tolower(http_uri)
if (http_uri contains "/logon.aspx") {
log "sslpool2" + client_addr
use pool pool2
}
else {
discard
}
}
else {
use pool1
}
The redirect worked just fine, but when I checked the pool2 statistic and never seen traffic goes thru. I checked the log "sslpool2" and never seen traffic hit pool2 either. This tells me that the second embeded "if" never had a chance to run.
What should I do to get the second "if" to run?
Thanks in advance.