Forum Discussion
hooleylist
Oct 13, 2010Cirrostratus
If 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