Forum Discussion
hooleylist
Apr 12, 2010Cirrostratus
Hi Luis,
If you want to insert :444 in the Host header if it's not present, you can use an iRule like this:
when HTTP_REQUEST {
Check if host header has a value and doesn't already have :444
if {[HTTP::host] ne "" && [getfield [HTTP::host] ":" 2] ne "444"}{
Append :444 to the host header value
HTTP::header replace Host "[HTTP::host]:444"
}
}
Aaron