Forum Discussion
kris_52344
Nimbostratus
Oct 13, 2010Replace http:// to https:// with i-rule
Dear all, I have a problem about it My Topology as under
client<-http-> F5-LTM <-http->Server
Here application working fine but problem is it give server ip address in http hesder
...
kris_52344
Nimbostratus
Oct 15, 2010Dear 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
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects