Forum Discussion

bigipjr28_13978's avatar
bigipjr28_13978
Icon for Nimbostratus rankNimbostratus
Apr 14, 2015

irule redirection

Hey,

 

Currently the way that we preform ssl redirection is through the use of 2 vips (same ip for each one, so we have two vips per application) one for http and the other https. We offload with on the ssl vip and the http vip we have the irule the redirects like so:

 

when HTTP_REQUEST { TCP::respond "HTTP/1.1 302 Found\r\nLocation: https://[HTTP::host][HTTP::uri]\r\nConnection: close\r\nContent-Length: 0\r\n\r\n" TCP::close discard }

 

What is the best way to redirect using a single VIP, if possible so that only one vips is used?

 

Thanks

 

1 Reply

  • If you want to have a "listener" on ports 80 (redirection) and 443 you need 2 vips.