Forum Discussion
Rich_79422
Nimbostratus
Oct 28, 2010http request inside https
Good morning,
I'm new to the Irule creation. I have a specific option I need to accomplish.
First I have 2 VS, 1 is http and this is just to redirect to the https vs.
We...
hoolio
Cirrostratus
Nov 01, 2010Hi Rich,
It sounds like the application is referencing itself over HTTP when being SSL proxied by LTM. If you want to avoid the client getting an insecure content warning, you'd want to rewrite the response headers and/or payload from http:// to https://. It would help to determine where the http:// reference is (in response headers and/or content). You can use a browser plugin like HttpFox for Firefox or Fiddler.
Depending on the application, you might be able to configure it to reference itself using https://. If not, you should be able to use an iRule to rewrite the http:// references to https://.
Also, if you want to try Bhattman's example, you can wrap the Host check in parentheses:
when HTTP_REQUEST {
if { !([HTTP::host] eq "domain.com") } {
HTTP::redirect "https://[HTTP::host]/[HTTP::uri]"
}
}
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