e.g.
[root@ve10:Active] config b virtual bar list
virtual bar {
destination 172.28.19.79:http
ip protocol tcp
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] starts_with "/123/"} {
HTTP::redirect "http://[string map {www hello} [HTTP::host]]:9090[HTTP::uri]"
}
}
}
[root@ve10:Active] config curl -I http://www.XYZ.com/123/something
HTTP/1.0 302 Found
Location: http://hello.XYZ.com:9090/123/something
Server: BigIP
Connection: Keep-Alive
Content-Length: 0