Forum Discussion
matt_108790
Nimbostratus
Nov 13, 2008selective SSL redirect
We host a number of sites behind our LTMs where we have a need to only load particular pages in SSL with everything else loading in clear text.
In these instances, SSL termination is set up on the LTM.
If possible.. I'd like an Irule that's easy to edit in the event more pages need to be set up to load in SSL ONLY. Some sort of Select Case type of statement would be ideal...like the concept below.
if any of these pages
login.aspx
form1.aspx
form2.aspx
etc
then load in SSL
else load http
Does anyone have something for this ?
1 Reply
- hoolio
Cirrostratus
Hi there,
If the application triggers POST requests to any of the objects you'd need to rewrite the response content where the form action is currently relative (defaults to HTTP) or explicitly set as HTTP. You couldn't just redirect the HTTP request for these objects to HTTPS as the client would not submit an identical POST request to the HTTPS location. It would submit a GET request without the post data.
It is possible, but not simple to selectively rewrite the HTTP references to HTTPS. You'd need to find all of the pages that refer to these objects you want to encrypt requests to. You'd need to rewrite the page content using a stream profile and iRule from relative or absolute references to http:// to https://.
It would be much simpler to either modify the application to reference HTTPS where you want HTTPS, or to use HTTPS for all but the root document.
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
