Forum Discussion
JohnL_247646
Feb 05, 2016Nimbostratus
I modified that a bit in my testing enviroment
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "lb.abc.com" } then {
HTTP::header replace Host "10.10.192.111"
}
}
when HTTP_RESPONSE {
if { [string tolower [HTTP::header value Location]] starts_with "http://" } then {
HTTP::header replace Location "https://lb.abc.com[getfield [HTTP::header value Location] ":80" 2]"
}
}
Not working and keep getting this in the ltm log.
error: [undefined procedure: HTTP::Location][HTTP::Location]