Forum Discussion
Bala_102559
Nimbostratus
Aug 05, 2009HTTPS IRule
Hi,
The load balancer we have is configured to terminate SSL traffic and forward HTTP requests to the backend servers. The requirement we have is that all the URLs that are present in the body of the response (returned page) should be converted to https:// (if the incoming request is over HTTPS) and should be http:// (if the incoming request is on HTTP). This is to avoid the browser warning messages due to combining HTTP and HTTPS on the same page. Is this possible using IRules (and the STREAM command) to identify the protocol of the request and modify the payload. Are there any other better ways to achieve this.
Thanks a lot for your help.
Regards,
Bala
- The_Bhattman
Nimbostratus
If you are simply rewritting HTTP to HTTPS then a STREAM profile would be more then enough. Now if you have have something more complex such as rewritting a specific page and other pages are not rewritten then you have to write up a more complex irule. - hoolio
Cirrostratus
It would still be good to use a STREAM::expression / STREAM::enable iRule (Click here) to explicitly enable the stream filter only for the responses (not requests) and only text-like content types. - Bala_102559
Nimbostratus
Hi cmbhatt , 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