Forum Discussion

jrooney_47165's avatar
jrooney_47165
Icon for Nimbostratus rankNimbostratus
Apr 09, 2009

HTTP and HTTPS on single Virtual Server

I have about 250 virtual servers setup listening on port 443 and doing SSL off loading. I'd like to listen on port 80 as well and redirect to 443 for each of the same virtual servers...is there a way to do this without setting up a seperate virtual service for each of the sites?

 

 

Thanks.
  • I believe so. If all your virtual servers on 443 are on the same subnet, then you could create a subnet virtual server listening on port 80, and then add an Irule that does a "HTTP::redirect https://[HTTP::host]/[HTTP::uri]/"

     

     

    I.E. If all your virtual servers are 192.168.1.1 to .255 listening on 443 then you can create a 192.168.1.0 255.255.255.0 listening on port 80 with the HTTP to HTTPS redirect irule running.

     

     

    I have never tried this but it might work in theory.

     

     

    Hope this helps

     

     

    CB