Forum Discussion
hooleylist
Oct 18, 2010Cirrostratus
Hi Kris,
Can you try something like this then to replace the node IP with the hostname?
when HTTP_RESPONSE {
Check if response is a 30x redirect
if { [HTTP::header is_redirect]} {
Rewrite http:// to https://, the IP to the hostname and remove the port reference in the Location header value
HTTP::header replace Location [string map -nocase "http:// https:// [IP::server_addr] blrorsapp :80/ /" HTTP::header value Location]]
}
}
Aaron