Can Big-IP Handle Outside Site redirects transparently to client
I am receiving a web client url that gets redirected to an outside site under certain circumstances. That outside site then returns a redirect request (302) that would ordinarily be returned back to the web client to handle. Is there a way for the Big IP to handle the redirect request, then return the redirected page back to the web client?
Here is the irule I have for the vs that gets the url request. I'm not sure what to put in the second HTTP::is_redirect section. I added an empty HTTP::is_redirect in the HTTP_REQUEST section just in case the new redirect triggers another HTTP_REQUEST. Not sure that's right either.
when HTTP_REQUEST { if { [HTTP::is_redirect] } {
} else { log local0. "MS365_Redirect virtual server" HTTP::redirect "https://login.microsoftonline.com"
} }
when HTTP_RESPONSE { log local0. [HTTP::status] if { [HTTP::is_redirect] } { What goes here to make new redirect? } }