newbee_77933
Jan 13, 2010Nimbostratus
http to https redirects
Hi,
i am new to this and would appreciate some advice. We are moving one of our customers from another load balancer to the F5 LTM running. The customer currently uses 3 VSs a catch all( port 0 VS ), port 443 VS and a port 8080 VS used to offload the 443 traffic , all with the same IP. The port 80 VS redirects traffic to the 443 VS.
So when we move to the LTM, i guess the following iRule applied to the port 80 VS with the http profile should work :
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
log local0. "[HTTP::host][HTTP::uri]"
}
The 443 VS will have client SSL profile enabled and the pool members on the 443 VS will listen on say port 8080. So we wont need the port 8080 VS.
I am guessing this will work, if not please tell me why it wont.
Is there a more efficient way of doing this? If so how?
thanks