Forum Discussion
Johann_Araujo
Nimbostratus
Mar 07, 2016Irule Redirect URL full path Http to Https
Hello everyone
I currently have a service on a virtual server in which set up a self-signed certificate on the client side and the f5 to servers is http.
This is running smoothly, when I go...
Kai_Wilke
MVP
Mar 07, 2016Hi Johann,
attach the iRule below to your HTTP-only Virtual Server. It will perform the HTTP-to-HTTPS redirect for you, while preserving the requested URI...
when HTTP_REQUEST {
HTTP::respond 307 "Location" "https://[getfield [HTTP::host] ":" 1][HTTP::uri]"
}
Note: Detach any previously configured HTTP-to-HTTPS redirect iRules on this Virtual Server.
Cheers, Kai
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