Greetings,
I need to write an irule to deal with IIS6’s courtesy redirect
Server replies to a client request with http://xyz.com:7081,
Is it possible to use an iRule to redirect the reply back to the client on standard port(80/443)?
Examples I have seen is for incoming redirection, but not outgoing.
thanks
It sounds like all you’d need to do is to re-write the host value during the HTTP_RESPONSE event.
Something like:
when HTTP_RESPONSE {
if { [HTTP::host] ends_with "7081" } {
HTTP::header replace HOST [getfield [HTTP::host] ":" 1]
}
}
HTH,
Colin
hoolio
3
Check this post for a more up to date example: (Click here)
Aaron