NSX Load Balancer_Application Rule to handle Redirection - TechRepublic
General discussion
September 4, 2021 at 05:32 PM
jsidd07a

NSX Load Balancer_Application Rule to handle Redirection

by jsidd07a . Updated 4 years, 9 months ago

Hi Guys,

I need some help to write down Application Rule for NSX Load Balancer to handle packet redirection.

There is an iRule (mentioned below) which we are using and need something similar for NSX Application rule.

Kindly assist.

Current iRule on F5:

when HTTP_RESPONSE {

if { [HTTP::is_redirect] } {

if { [string tolower [URI::host [HTTP::header Location]]] contains “” and [URI::protocol [HTTP::header Location]] equals “http”} {

HTTP::header replace Location [string replace [HTTP::header Location] 0 3 https]
}
}
}

Thanks,
JS

All Comments