babaransari_361
Jun 01, 2018Nimbostratus
https redirection using single virtual server
need to configure an irule to perform https redirection using a single virtual server. The url http://abc.com:8080 needs to be redirected to https://abc.com:8080 but i need to achieve this redirection using only one virtual server which is listening on https. I have the below irule configured but after redirection the page does not proceed further while authenticating with the login credentials.
when HTTP_REQUEST { if { [URI::protocol [HTTP::uri]] eq "https" } { event disable all } else { HTTP::redirect https://[getfield [HTTP::host] ":" 1]:8080[HTTP::uri]; event disable all } }