Forum Discussion
Stanislas_Piro2
Oct 27, 2017Cumulonimbus
when connecting to the URL http://srv.company.com:9500, the Host header is srv.company.com:9500. you have to strip the port before adding the destination port.
you can do it with
[getfield [HTTP::host] ":" 1]
when HTTP_REQUEST {
HTTP::redirect "https://[getfield [HTTP::host] ":" 1]:8443[HTTP::uri]"
}