Forum Discussion
Rafish_129330
Nimbostratus
Dec 11, 2013http to https redirect
Hi,
I new in irule and i want every time that client do this "http://myserver.com" the F5 will redirect to "https://myserver.com".
I chenged my virtual server and now he is listening to http and in t...
Os_69448
Nimbostratus
Dec 11, 2013Hello Rafi,
You need two virtual servers.
VS-servername.com:HTTP ---Apply iRule _sys_https_redirect. VS-servername.com:HTTPS ---Apply ssl profile here.
You'll get a redirect to https if you access http://servername.com Also, you'll be able to access https://servername.com
Os
- Rasool1224Aug 26, 2015
Nimbostratus
Hi there, I do face same problem, as per above answer, What I understood is, 1. create one VS_with_http_port. 2. create another VS_with_https_port and adding same nodes. but in 1 you advised to apply iRule_sys_https_redirect, my question is what should I write in the below field in the iRule HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] finally which VS should I apply ASM policy. kindly update thank you & prompt response is much appreciated. Regards, Gulam
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects