Forum Discussion

Durga_Dash_2124's avatar
Durga_Dash_2124
Icon for Nimbostratus rankNimbostratus
Jun 19, 2008

Grab last octet of IP address and redirect

I want to redirect all request coming to my virtual server listening at 10.12.13.X to 10.50.10.X.

 

 

In version 9.x i put the following on all the 10.12.13.X virtual servers to redirect them to the correspoing 10.50.10.X virtual server on another load balancer.

 

----------------

 

HTTP::redirect http://10.50.10.[getfield [IP::local_addr] . 4][HTTP::uri]

 

------------------

 

 

How do i translate the above 9.x rule to a 4.x rule?