Forum Discussion
Brian_107072
Nimbostratus
Oct 28, 2009secure redirect behind load balancer
Greetings,
We have some apps that are run behind a SSL terminating BigIP load balancer. All requests internally are handled on a single none secure port (8080).
When a request comes in that starts on https, the app returns a redirect (eg. viewName="redirect:somepage.do"), it sends a redirect with an insecure url. We never had this problem before but we only just started using Spring Framework. Struts framework handles it differently. Is there a solution that can be applied on the iRule for this application? Currently the iRule just sends the request to the appropriate pool.
Thanks in advance,
Brian
- L4L7_53191
Nimbostratus
Brian: Create a custom http profile for this virtual server and enable "redirect rewrite". This should work. I'm surprised Spring does this, although I'm sure there's a parameter somewhere that allows you to tune it. Either way, this should work. - Brian_107072
Nimbostratus
OK, that works for the spring app but now the rest of my apps are broken. For example my PHP site is somehow getting directed to SSL when its not supposed to be SSL. - Brian_107072
Nimbostratus
Can the "redirect rewrite" be applied in an iRule somehow? - hoolio
Cirrostratus
Hi Brian, - L4L7_53191
Nimbostratus
Brian: It really sounds like you've applied this change to the top level parent HTTP profile, which would then cause *any* virtual server using this profile to take the change. Be sure and create a custom HTTP profile for this specific application, then modify it for this particular app (the Spring app). If you need help doing this please post back. Oh, and if you've indeed changed the parent HTTP profile be sure and roll back your original change! - hoolio
Cirrostratus
Hey Matt, - Brian_107072
Nimbostratus
Matt and Aaron,
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