Forum Discussion

Bala_102559's avatar
Bala_102559
Icon for Nimbostratus rankNimbostratus
Aug 05, 2009

HTTPS 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
  • 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.

     

     

    Hope that helps

     

    CB

     

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    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.

     

     

    Aaron
  • Hi cmbhatt , Aaron,

     

     

    Thanks a lot for your responses.

     

     

    Regards,

     

    Bala