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
...
hoolio
Cirrostratus
Oct 13, 2010If you want to rewrite the redirects from the virtual server IP to a hostname and from http:// to https://, you can modify the string map command:
when HTTP_RESPONSE {
Check if response is a 30x redirect
if { [HTTP::header is_redirect]} {
Rewrite http:// to https:// and the IP to the hostname in the Location header value
HTTP::header replace Location [string map -nocase "http:// https:// 172.31.112.40 blrorsapp" HTTP::header value Location]]
}
}
Aaron
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