Forum Discussion
Bob_10976
Nimbostratus
Jul 11, 2011Help with HTTP redirect in ALL directions
Hello all,
We have been using the standard HTTP redirect irule, (posted below) that comes with our LTM, ver 10.2.0, for sometime now. However I'm being told now that this not only needs to be applied to incoming traffic, but internal traffic coming from the server as well. Basically I need the HTTP redirect iRule to work for all directions no matter where the request is coming from.
Currently we setup two VIPs, one http and the other https. The LTM acts as the SSL offload for a few Apps, the traffic on the backend to the server is done over http. We simply use the http redirect to https.
Should I simply apply this iRule to my https VIP as well or is there a better way to redirect internal traffic to use HTTPS?
when HTTP_REQUEST {
if { [HTTP::host] equals "" } {
reject
}
}
Thanks,
Bob
12 Replies
- Bob_10976
Nimbostratus
Thanks All! Looks like were golden now!
Bob - bigiptechie_982
Nimbostratus
Posted By Colin Walker on 07/11/2011 10:01 AM
Okay, that makes more sense. :)
Now, what is it you want to do for requests bound from the internal network to the outside world? Do you really want to force all of those to HTTPS?
Colin
Hi Colin
Could you please post the irule that force all internal to external http to https
Thx
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
