Forum Discussion

Glenn_32974's avatar
Glenn_32974
Icon for Nimbostratus rankNimbostratus
Jun 03, 2010

HTTP Response HTTP to HTTPS

I have the following scenario:

 

 

Client connects to website https://myquestion.com.vz to create an account in order to gain access to resources. (I have setup an SSL client side profileto do this).

 

 

After the client creates the account the server responds (HTTP_RESPONSE) with the original website URL but in http fashion (http://myquestion.com.vz) so clients are getting an error because of the SSL client side profile

 

 

 

Basically what I need is to convert server response from http://myquestion.com.vz to https://myquestion.com.vz

 

 

Unfortunately Im not a irule master but I know this can be achieved via an iRule.

 

 

I know this is probably to much to ask but can some help me out with this iRule?

 

 

best

 

 

G

 

2 Replies

  • Hi Glenn,

     

     

    Is the http:// reference in the headers or the payload? To rewrite http:// to https:// in the Location header you can enable rewriting of redirects in a custom HTTP profile. For rewriting response content, you can use a stream profile and STREAM::expression based iRule. See the related wiki page for examples and more info:

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/stream__expression

     

     

    Aaron