Forum Discussion
virtual server http redirect to https
Hi expert
I'm running F5 LTM version 12.1.2. I would like to enable http to https redirect for my virtual server. I have two node configured with https. Currently im able to access my portal via https but getting site unreachable when try to access using http. Can any one show me how to enable http to https on LTM version 12?
- Krishna_251070
Nimbostratus
Hello,
You need to create a Virutal Server that listens for http request and then re-direct to https.
You can do the http to https redirection using either an iRule or a policy.
You can either write your own custome iRule or you can use the deafult F5 provided iRule.
Else you can write a custom policy that also do the job.
Then add the iRule/Policy in the http Virtual Server under the 'Resource' tab.
- WithF5
Nimbostratus
It is possible use iRules for that, but I suggest you use Policy instead. Have a look in this post and try to do it. https://devcentral.f5.com/s/feed/0D51T00006i7WvASAU
 
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com