e.g.
[root@ve1023:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {([HTTP::uri] equals "/") or ([HTTP::uri] equals "/levi_b2b/init.do")} {
HTTP::uri "/levi_b2b/init.do"
} elseif {[HTTP::uri] equals "/bd"} {
HTTP::redirect "/bd/public/frameset_top_html.jsp"
} else {
HTTP::redirect "
http://leo.levi.com/index.htm"
}
}
}
[root@ve1023:Active] config curl -I
http://172.28.19.79/bd
HTTP/1.0 302 Found
Location: /bd/public/frameset_top_html.jsp
Server: BigIP
Connection: Keep-Alive
Content-Length: 0