e.g.
[root@ve1023:Active] config b virtual bar list
virtual bar {
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::path] equals "/" } {
HTTP::redirect "https://webmail.mycompany.com/owa"
} else {
HTTP::redirect "https://webmail.mycompany.com[HTTP::uri]"
}
}
}
[root@ve1023:Active] config curl -I http://webmail.mycompany.com
HTTP/1.0 302 Found
Location: https://webmail.mycompany.com/owa
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
[root@ve1023:Active] config curl -I http://webmail.mycompany.com/somethingelse
HTTP/1.0 302 Found
Location: https://webmail.mycompany.com/somethingelse
Server: BigIP
Connection: Keep-Alive
Content-Length: 0