Forum Discussion
andrew_deackes_
Nimbostratus
Oct 05, 2006syntax check?
Hi,
I'm a complete novice with i-rules, so can anybody advise how to test or check that the syntax is correct, that there are no problems with the writing of the rule (eg spurious characters...
John_LeMay_1062
Nimbostratus
Sep 27, 2006Aaron,
Thank you for the reply. Your explanation seemed to simplify matters somewhat. Based on that, I came up with the following irule. However, I'm not getting the desired results. I'm receiving an error in my browser indicating the page I'm requesting cannot be found.
Based on what is below and on the configuration of the VS I described, I would expect when a client connects to "https://server" the LTM would request "http://server/path/path:81". That doesn't seem to be happening. I don't expect I still need a http redirect here. Am I wrong?
I'd also like to simplify that if/elseif/else if anyone has a recommendation.
when HTTP_REQUEST {
set uri [HTTP::uri]
if { $uri eq "" } {
set uri "/path/path"
pool pool_app_http81
} elseif { $uri eq "/" } {
set uri "/path/path"
pool pool_app_http81
} else { pool pool_app_http81 }
}