transform juniper redirector and cluster to VS using irule
I'm new in iRule developping, i would like just transforming this redirector and cluster Juniper DX to a virtual server.
Do i need to create to 2 VS, one VS for redirect using an irule and a second standard VS with snat automap?
In this configuration, the user is redirected from 126.96.36.199:80 to the cluster 188.8.131.52:8080 with a new URI:new_uri/test
set cluster foo listen vip 184.108.40.206
set cluster foo listen netmask 255.255.255.255
set cluster foo listen port 8080
set cluster foo target host 220.127.116.11:8080
set cluster foo target name foo.bar.com
set redirector foo listen netmask 255.255.255.255
set redirector foo listen port 80
set redirector foo name foo
set redirector foo listen vip 18.104.22.168
set redirector foo port 8080
set redirector foo protocol http
set redirector foo host foo.bar.com
set redirector vega customurl new_uri/test
Thanks for your help.