Forum Discussion
Corey_Webb_9791
Nimbostratus
Dec 18, 2007Redirect HTTP to HTTPS without using HTTP_REQUEST trigger
I need to redirect traffic that comes to my VIP as http:\\x.y.z to https:\\x.y.z however since there is no actual HTTP_REQUEST triggered when the request comes in as http I need to trigger this redire...
hoolio
Cirrostratus
Dec 19, 2007Also, if you really want to, you can actually do this with a single virtual server. The configuration is slightly more complex compared with configuring one HTTP and one HTTPS virtual server, as it requires an iRule to handle the various scenarios.
To do this, create a single virtual server defined on port 0 (any) with a client SSL profile and an HTTP profile configured. The pool would be made up of web servers accepting HTTP only (port 80). You can then use an iRule to disable the client SSL profile for HTTP requests. Or you can enable the 'non-ssl' option on the client SSL profile to allow HTTP communication to the virtual server through the client SSL profile. You would also want to drop (ignore) or reject (send a TCP reset) to requests not on the HTTP or HTTPS ports. I added an example to the codeshare (Click here).
Aaron
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