Forum Discussion
The_Bhattman
Sep 02, 2009Nimbostratus
Try this
Where the default pool VIP:80 is pool 2 and default pool for VIP:443 is pool 1
This code would be applied on VIP:80
when HTTP_REQUEST {
if { ([HTTP::host] eq "www.foo.com") } {
switch -glob [HTTP::uri] {
"/" { HTTP::redirect "https://[HTTP::host]" }
"/bar" { HTTP:redirect "http://www.bar.com" }
}
}
}
This assumes that www.bar.com is hosted on the VIP:80
Hope this helps
CB