Anthony_Fornito
Nov 20, 2017Cirrus
Redirect based off URL not URI
I have 3 nodes setup
In IIS on each server I have a binding:
My nodes:
Node1192.168.70.57
Node2192.168.70.58
Node3192.168.70.88
I am looking for an irule that if the url contains node1 it will go to node 1
for example:
uses goes to node1.domain.com
the will get redirected (redirected may be the wrong word here) to https://node1.domain.com
the Page on node 1 will come up.
Here is what I have tired but I keep getting a 404 though the f5, if i set my host file for node 1 it works fine.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri] ] contains "*node1*" } {
node 192.168.70.57 443
}
}