kris_52344
Oct 13, 2010Nimbostratus
Replace 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
to resolve this we use followin i-rule
when HTTP_RESPONSE {
if { [HTTP::header is_redirect]} {
HTTP::header replace Location [string map -nocase {172.31.112.40 blrorsapp} HTTP::header value Location]]
}
}
It's working & provide host name insted of ip
Now User wants access application as https
client<-https-> F5-LTM<-http-> Server
if i make redirect rewrite set to all client get f5 virtual ip address in the browser insted of host name
so what changes i have to do in irule to resolve this issue
Note:- if i set redirect rewrite set to none we get page cannot be display error