Forum Discussion
hooleylist
May 19, 2009Cirrostratus
What port is the virtual server defined on? What port are the pool members defined on? Do the web servers require that the Host header value contain the port number (ie, is the virtual host definition expecting the port to be explicitly listed)?
LTM will translate the port as long as you leave port translation enabled on the virtual server. If you need to, you can rewrite the host header using HTTP::header replace Host "newhost.example.com". Here is an example:
when HTTP_REQUEST {
Check if host header does not have port already
if {[string length [getfield [HTTP::host] ":" 2]] <= 0}{
Append the port to the host header value
HTTP::header replace Host "[HTTP::host]:300"
}
}
If the application includes the port in redirects, you can remove it using the Codeshare example cmbhatt and I linked to above.
Aaron