Forum Discussion
nitass
Apr 14, 2012Employee
just in case you want redirection.
[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::uri] starts_with "/foo" } {
HTTP::redirect "http://[HTTP::host][string map {"/foo" ""} [HTTP::uri]]"
}
}
}
[root@ve1023:Active] config curl -I http://www.abc.com/foo/meh/
HTTP/1.0 302 Found
Location: http://www.abc.com/meh/
Server: BigIP
Connection: Keep-Alive
Content-Length: 0