Forum Discussion
nitass
Aug 20, 2013Employee
not sure if i understand correctly (i guess i don't). if not, would you mind posting some example please? anyway, this is just a http redirection example based on uri.
e.g.
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.20.111:443
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
clientssl {
context clientside
}
http { }
tcp { }
}
rules {
myrule
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 22
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm pool foo
ltm pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
}
}
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/ms365" } {
HTTP::redirect "https://login.microsoftonline.com/"
}
}
}
- Dean_Brown_01_1Aug 20, 2013Nimbostratusyes, your irule matches mine regarding the redirect. Thanks.