Gill_32697
May 30, 2013Nimbostratus
help with url redirect
I had to create two separate VIPs due to SSL Certs. VIP1 work fine and redirect pool member as it should. VIP2 is using a different url, I need it to be redirected to a new url which is the VIP1 as long as the different ssl certs doen cause an error or rediect the the pool member with to correct url that the customer should see in the address bar.
I need customers coming in on VIP1 https://timesrv.bumpy.com/guest redirected to VIP2 https://ptotime.mycomp.com/quest via the virtual VIP or via pool member or preferably the pool....FYI its failing at the http_request section.
when CLIENT_ACCEPTED {
if { ( [expr [TCP::local_port] >= 5402] ) and ( [expr [TCP::local_port] <= 5405] ) } {
pool BumpyPool2
HTTP::disable
SSL::disable clientside
translate port disable
SSL::disable serverside
} elseif { [TCP::local_port] == 443 } {
return
} else {
reject
}
}
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
timesrv.bumpy.com/guest { HTTP::redirect https://ptotime.mycomp.com/quest }
default { HTTP::respond 200 content "no such service" }
}
}