Forum Discussion
kris_52344
Oct 15, 2010Nimbostratus
Dear Hoolio
I try the following 2 i-rule But the problem was not solved
when HTTP_RESPONSE {
if { [HTTP::header is_redirect]} {
Log original and updated values
log local0. "Original Location header value: [HTTP::header value Location],\
updated: [string map -nocase "http:// https:// :80/ /" [HTTP::header value Location]]" Do the update, replacing old.hostname.com with new.hostname.com and replacing http:// with https:// and :80/ with /
HTTP::header replace Location
[string map -nocase "http:// https:// :80 /" {old.hostname.com new.hostname.com} [HTTP::header value Location]]
}
}
Actually the application put node ip address in the header, so if i set the rewrite redirect set to all the application is working but it shows the f5 vip in the client browser
& client wants the host name in browser insted of the f5 vip