Forum Discussion
Aabuitrago
Jun 11, 2019Altostratus
iRule HTTP to HTTPS redirect keep port and uri
Hi, Does anyone knows the correct syntax of an irule to redirect http to https and keeping the port for example http://www.example.com:8443 --> redirect_to --> https://www.example....
JG
Jun 13, 2019Cumulonimbus
It is always the best to try to fix the issue in the application first if possible. In the absence of the information what app server it is, you can try the following to inform the application of what scheme is used at the user entry point:
- Create an HTTP profile for your virtual server;
- In the field "Request Header Insert" of the profile, enter "X-Forwarded-Proto: https".
If the app server is load-balancer-aware, this should be enough for the app to know what scheme to use when it constructs a self-referencing URL.
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