Forum Discussion
DevBabu
Feb 27, 2017Cirrus
Basically we need to have a port 80 and port 443 virtual both loadbalancing to the same pool for port 80.
Port 443 VS should have SSL offloaded and HTTP Profile in it.
Then iRule on port 80 virtual server with HTTP Profile:
when HTTP_REQUEST {
if { [HTTP::path] equals "example.asp" } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
If you are looking directly to point to the vs name checkout the following link:
https://devcentral.f5.com/wiki/iRules.virtual.ashx
I am not sure, if pointing directly to a VS works as the request protocol will not be changed when it hits the 443 virtual.