Forum Discussion

El_Bendecido_12's avatar
El_Bendecido_12
Icon for Altostratus rankAltostratus
Feb 21, 2019

Change responses http to https

Hello,

 

Im trying to migrate an application but it looks like content mixed or something like that and i can't pass to the load balance

 

The answer of the application into the server is like this:

 

https:test1.test.pru

 

http:test2.test.pru

 

http:test3.test.pru

 

Then the client watch a certificate error in the page

 

I create an irule with stream and after it, this just resolve one of them and the new answer is like this:

 

https:test1.test.pru

 

https:test2.test.pru

 

http:test3.test.pru

 

I tried to modify the irule but wasn't possible to correct the last behavior

 

Here the iRule:

 

 

What can i do to correct the last one?

 

2 Replies

  • Have you tried using Rewrite Redirects in the http profile? This will rewrite redirects to https for you.

     

  • So you have to work out exactly what you want to change here - the HTML code or the redirects sent from the server. If you want to change the HTML code then use the stream profile, if you want to rewrite redirects then use the Rewrite Redirects in the HTTP profile.

     

    As Michael says, you need to apply the default Stream profile to the VS and use the iRule to change the HTML code.