Forum Discussion
Policy or iRule for HTTPS to HTTP redirect
Can someone help me build a redirect from https to http. I know it is uncommon to do it vice versa but that's how I need it. I tried various reverse iRules from http to https but it won't be accepted by the F5 giving the error. My version is 11.5.3 so I can use a policy instead but can't find a proper way to create one for this purpose.
- Stanislas_Piro2
Cumulonimbus
There is an irule provided by F5...
Create a http virtual server listening on port 80 with _sys_https_redirect irule assigned
- Samir_Jha_52506
Noctilucent
Lot of irules are available in devcentral portal...
when HTTP_REQUEST { HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] }
- KimiLi_147173
Nimbostratus
First of all, you need to have a vs on F5 listening on https port 443 to catch the initial client request;
then you need to have a redirect irule on this https vs to redirect request to another vs that's listening on http port 80, for purpose that this irule works you need a client ssl profile on the https vs.
- Draken_308111
Nimbostratus
Hi, thanks for your comment. I do have it set up this way - two vs for 443 and 80, just need a working irule assigned.
- KimiLi_147173
Nimbostratus
when HTTP_REQUEST { HTTP::redirect http://[HTTP::host][HTTP::uri] }
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