Port changing

From Tech-Wiki
Jump to: navigation, search

Back to iRules

when HTTP_REQUEST {
 if { [TCP::local_port] == 8400 } {
   HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
 }
}