Hi Everyone,
I have a problem with an iRule that I could use some help with. The rule is accepted on my BigIP but the end result is that traffic is not passed to my server on the right port/directory.
My users hit the URL http://stat
(this resolves to 192.168.240.21)
My goal is for the BigIP to forward this request to:
http://10.70.164.30:18121/stat
To try and achieve this, I wrote the following rule:
when HTTP_REQUEST {
if { [HTTP::host] equals “stat”} {
HTTP::uri /stat[HTTP::uri]
set dest_port_cmd TCP::18121
pool Stat-pool
}
}
The Pool “Stat-pool” has one member. Host 10.70.164.30:18121. I am guessing that I may not have needed to set the destination port as it is done in the pool already. However aside from that, I do not know why it isn’t working. TCPDUMP on the BigIP shows that it is passing data to the correct host. If i hit the server directly, I get the expected page.
Any help is appreciated.
James